- Get link
- X
- Other Apps
Program
MOV SI,2000H
MOV BL,[SI]
DEC BL
UP1 : MOV CL,BL
INC SI
UP : MOV AL,[SI]
INC SI
CMP AL,[SI]
JA DOWN (If CF = ZF = 0)
XCHG AL,[SI]
DEC SI
MOV [SI],AL
INC SI
DOWN : LOOP UP
MOV SI,2000H
DEC BL
JNZ UP1 (If ZF = 0)
INT 03H
Comments
Post a Comment