马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code
code segment
start:
MOV AX,CS
MOV DS,AX
MOV SI,offset do0
MOV AX,0
MOV ES,AX
MOV DI,200h
MOV CX,offset jiesu-offset do0
CLD
REP movsb
MOV AX,0
MOV DS,AX
MOV WORD ptr DS:[7ch*4+2],0
MOV WORD ptr DS:[7ch*4],200H
mov ax,4c00h
int 21h
do0:
PUSH AX
PUSH ES
PUSH DI
PUSH DX
PUSH bx
MOV AX,0b800h
MOV ES,AX
MOV DI,0
;行
MOV AX,0
MOV AL,DH
MOV BL,160
MUL BL
ADD DI,AX
;列
MOV AX,0
MOV AL,DL
MOV BL,2
MUL BL
ADD DI,AX
s:
MOV AL,[SI]
;是否 等于0
CMP AL,0
JE ok
MOV ES:[di],AL
MOV ES:[DI+1],CL
ADD DI,2
INC SI
JMP short s
ok:
POP bx
POP DX
POP DI
POP ES
POP AX
IRET
jiesu:nop
code ends
end start
assume cs:code,DS:data
data segment
DB 'cai hong dao !',0
data ends
code segment
start:
MOV AX,data
MOV DS,AX
MOV SI,0
MOV DH,12
MOV DL,40
MOV CL,2
INT 7ch
mov ax,4c00h
int 21h
code ends
end start
|