马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
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 BP
MOV BP,sp
DEC CX
JCXZ ok
ADD [BP+2],bx ;这里加2是因为在之前又push一个bp
ok:
POP BP
IRET
jiesu:nop
code ends
end start
assume cs:code
code segment
start:
MOV AX,0b800h
MOV ES,AX
MOV DI,160*12
MOV bx,offset s-offset se
MOV CX,80
s:
MOV BYTE ptr ES:[DI],'!'
MOV BYTE ptr ES:[DI+1],2 ;如果颜色不设置默认为白色
ADD DI,2
INT 7ch
se:NOP
mov ax,4c00h
int 21h
code ends
end start
|