12.07.2015 Views

Emu8086 Tutorial - FET

Emu8086 Tutorial - FET

Emu8086 Tutorial - FET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

(9) Wrong parameters: MOV AL, 0FFFFh(9) Operands do not match: Second operand is over 8 bits!First error message (7) is incorrect, compiler did not finish calculating the offsets for labels, so it presumes thatthe offset of m1 label is 0000, that address is out of the range because we start at offset 100h.Make correction to this line: MOV AL, 0FFFFh (AL cannot hold 0FFFFh value). This fixes both errors! Forexample:#make_COM#ORG 100hMOV AX, 0MOV CX, 5m1: INC AXLOOP m1MOV AL, 0FFh; same code no error!; fixed!RET

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!