Skip to content

Instantly share code, notes, and snippets.

@leffuy
Created May 13, 2010 17:37
Show Gist options
  • Save leffuy/400116 to your computer and use it in GitHub Desktop.
Save leffuy/400116 to your computer and use it in GitHub Desktop.
;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
@leffuy
Copy link
Author

leffuy commented May 13, 2010

AL = 21H
AH = 45H
ADD 23H to 45H
CL = 23H
CH = 06

@leffuy
Copy link
Author

leffuy commented May 13, 2010

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