Supported arithmetics

TMA knows polyamidal systems only. Every decimal number starts with '1'-'9'. Every hexadecimal number start with '0' if the desired base isn't canged by a following letter.

decimal 1024 hexadecimal 400H 0400 binary 10000000000B octal 2731O 2731Q (to be compatible) Kilobytes (decimal) 1K (=1024)

The directive 'BY' pastes bytes. It simply shifts the first constant left by 8 bits and adds the next constant.

MOV AX,const1*256+const2

may also be expressed this way:

MOV AX,const1 BY const2

Arithmetic operations

Identifier Description Example ------------------------------------------------------------ + add 10+10 - subtract 10-10 * multiply 10*10 / divide 10/10 AND logical AND 10 AND 10 OR logical OR 10 OR 10 XOR logical exklusive-OR 10 XOR 10 NOT complement NOR 10 or !10 SHR shift right by 10 SHR 2 SHL shift left by 10 SHL 2 LOW return low byte of LOW (200*10) HIGH return high byte of HIGH (200*10) BIT return value of bit BIT 15 (=32768)