"IBM personal computer assembly language tutorial" - читать интересную книгу автора (Auerbach J.)


4) AND, OR, XOR -- typical boolean operations

5) TEST -- like an AND, except the answer is thrown away and nei-
ther operand is changed.

6) MOV -- move data from source to target

7) LDS, LES, LEA -- some specialized forms of MOV with side
effects

b. Ordinary one operand instructions. These can take any of the oper-
and forms described above. Usually, the perform the operation and
leave the result in the stated place:

1) INC -- increment contents



IBM PC Assembly Language Tutorial 7


2) DEC -- decrement contents

3) NEG -- twos complement

4) NOT -- ones complement

5) PUSH -- value goes on stack (operand location itself unchanged)

6) POP -- value taken from stack, replaces current value

c. Now you touch on some instructions which do not follow the general
operand rules but which require the use of certain registers. The
important ones are

1) The multiply and divide instructions

2) The "adjust" instructions which help in performing arithmetic
on ASCII or packed decimal data

3) The shift and rotate instructions. These have a restriction on
the second operand: it must either be the immediate value 1 or
the contents of the CL register.

4) IN and OUT which send or receive data from one of the 1024
hardware ports.

5) CBW and CWD -- convert byte to word or word to doubleword by
sign extension