memory, immediate
REG, immediate
memory, REG
REG, SREG
Some examples contain macros, so it is advisable to use Shift + F8 hot key to
Step Over
(to make macro code
execute at maximum speed set step delay to zero), otherwise emulator will step through each instruction of a macro.
Here is an example that uses PRINTN macro: include 'emu8086.inc' ORG 100h MOV AL, 1 MOV BL, 2 PRINTN 'Hello World!' ;
macro. MOV CL, 3 PRINTN 'Welcome!' ; macro. RET
These marks are used to show the state of the flags:
1 - instruction sets this flag to 1.
0 - instruction sets this flag to 0.
r - flag value depends on result of the instruction.
? - flag value is undefined (maybe 1 or 0).
Some instructions generate exactly the same machine code, so disassembler may have a
problem decoding to your original code. This is especially important for Conditional
Jump instructions (see "Program Flow Control" in Tutorials for more information).
Instructions in alphabetical order:
ASCII Adjust after Addition.
Corrects result in AH and AL after addition when working with BCD values.
It works according to the following Algorithm:
if low nibble of AL > 9 or AF = 1 then:
AL = AL + 6
AH = AH + 1
AF = 1
CF = 1