DATA SEGMENT
DATA ENDS
CODE SEGMENT
ASSUME DS:DATA,CS:CODE
START:
MOV AX,DATA
MOV DS,AX
MOV AL,02
MOV AH,09
MOV BL,AL
MOV AL,AH
MOV AH,BL
MOV AH,4CH
INT 21
CODE ENDS
END START
;OUTPUT:->
;-R
;AX=0000 BX=0000 CX=0013 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
;DS=0B98 ES=0B98 SS=0BA8 CS=0BA8 IP=0000 NV UP EI PL NZ NA PO NC
;0BA8:0000 B8A80B MOV AX,0BA8
;-T
;
;AX=0BA8 BX=0000 CX=0013 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
;DS=0B98 ES=0B98 SS=0BA8 CS=0BA8 IP=0003 NV UP EI PL NZ NA PO NC
;0BA8:0003 8ED8 MOV DS,AX
;-T
;
;AX=0BA8 BX=0000 CX=0013 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
;DS=0BA8 ES=0B98 SS=0BA8 CS=0BA8 IP=0005 NV UP EI PL NZ NA PO NC
;0BA8:0005 B002 MOV AL,02
;-T
;
;AX=0B02 BX=0000 CX=0013 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
;DS=0BA8 ES=0B98 SS=0BA8 CS=0BA8 IP=0007 NV UP EI PL NZ NA PO NC
;0BA8:0007 B409 MOV AH,09
;-T
;
;AX=0902 BX=0000 CX=0013 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
;DS=0BA8 ES=0B98 SS=0BA8 CS=0BA8 IP=0009 NV UP EI PL NZ NA PO NC
;0BA8:0009 8AD8 MOV BL,AL
;-T
;
;AX=0902 BX=0002 CX=0013 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
;DS=0BA8 ES=0B98 SS=0BA8 CS=0BA8 IP=000B NV UP EI PL NZ NA PO NC
;0BA8:000B 8AC4 MOV AL,AH
;-T
;
;AX=0909 BX=0002 CX=0013 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
;DS=0BA8 ES=0B98 SS=0BA8 CS=0BA8 IP=000D NV UP EI PL NZ NA PO NC
;0BA8:000D 8AE3 MOV AH,BL
;-T
;
;AX=0209 BX=0002 CX=0013 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
;DS=0BA8 ES=0B98 SS=0BA8 CS=0BA8 IP=000F NV UP EI PL NZ NA PO NC
;0BA8:000F B44C MOV AH,4C
;-T
;
;AX=4C09 BX=0002 CX=0013 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
;DS=0BA8 ES=0B98 SS=0BA8 CS=0BA8 IP=0011 NV UP EI PL NZ NA PO NC
;0BA8:0011 CD15 INT 15