Created
May 13, 2010 17:37
-
-
Save leffuy/400116 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Program 1 | |
MOV AL, LIST | |
MOV AH, LIST+2 | |
ADD LIST+1,AH | |
MOV CL, LIST+1 | |
MOV CH, LIST+4 | |
ADD AX,CX | |
LIST DB 21H,23H,45H,00,06,01 | |
;Program 2 | |
MOV AX, Array | |
INC AL | |
INC AH | |
ADD AL,03 | |
ADD AH,02 | |
Array dw 1111h | |
Before line the states are
AL = 21H
AH = 68H
CL = 23H
CH = 06H
Thus
AX = AL:AH = 0x2145
CX = CL:CH = 0x0623
ADD 0x2145 and 0x0623
0x2768
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AL = 21H
AH = 45H
ADD 23H to 45H
CL = 23H
CH = 06