Download ZBOIBOB6 Cross Assembler
Transcript
EXAMPLES OF OPERANOS Legal: -3+ 17H SCOPE+4 [ bx + COUNT-2 ] [SI+ARRAY+.BX-OFFSET] ;OFFSET must have already been defined [01] [ NEXT] Illegal: 12+BX ;Register not allowed in VALUE 9C01 ;Needs trailing IHI [Count - BX] [BX+BP] ;Can't subtract register ;Only one base register at a time [ARRAY+BX+OFFSET] COUNT-OIF ;Both labels are forward referenced (Note 1) ;OIF is forward referenced (Note 2) Note 1. This problem could be corrected like this: MOV AX,[BX + ARRAYPLUSOFFSET] ARRAY: OFFSET: ARRAYPLUSOFFSET: EQU ARRAY + OFFSET Note 2. This problem could be corrected like this: MOV AX, COUNT + MINUSOIF OIF: MINUSDIF:EQU -OIF - 8 -