assume cs:codesg
datasg segment
db 'welcome to masm!'
datasg ends
codesg segment
start:
mov ax,datasg
mov ds,ax
mov ax,0b872h
mov es,ax
mov si,0h
mov di,0h
mov cx,10h
s1:
mov al,[si]
mov ah,02h
mov word ptr es:[di],ax
add di,2
inc si
loop s1
mov ax,4c00h
int 21h
codesg ends
end start
为什么执行后不显示呢?
我看了不是屏幕滚动的问题,感觉应该是在windows下的dos中的原因。
是不是在纯dos下才显示呢?
我用的系统是:xp2 |