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