|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:codesg
datasg segment
db 'welcome to masm!',00000010B,00100100B,01110001B
datasg ends
codesg segment
start:mov ax, datasg
mov ds, ax
mov ax, 0b800h
mov es, ax
mov cx, 16
mov bx, 0
mov si, 0
mov ax, 0
s:mov al, ds:[bx]
mov es:[720h+si], al
mov al, ds:[16]
mov es:[720h+1+si], al
inc bx
add si, 2
loop s
mov bx, 0
mov cx, 16
mov ax, 0
mov si, 0
s1:mov al, ds:[bx]
mov es:[720h+160+si], al
mov al, ds:[17]
mov es:[720h+1+160+si], al
inc bx
add si, 2
loop s1
mov bx, 0
mov cx, 16
mov ax, 0
mov si, 0
s2:mov al, ds:[bx]
mov es:[720h+160+160+si], al
mov al, ds:[18]
mov es:[720h+1+160+160+si], al
inc bx
add si, 2
loop s2
mov ax, 4c00h
int 21h
codesg ends
end start
这个程序应该显示三行的 但是却只是显示了两行,求大神找错误 |
|