编译通过,不知正不正确呢,大家帮看下
;程序功能:在内存地址B8000H - B8FFFFH共32KB的空间显示字符串
assume cs:code , ss:stack
stack segment
db 'welcome to masm!'
stack ends
code segment
start: mov ax,stack
mov es,ax
mov ax,0b800h
mov ds,ax
mov bx,820H
mov di,0
mov cx,10h
s: mov al,es:[di]
mov ah,00000010b;
mov ds:72[bx],ax
mov ah,00100100b
mov ds:232[bx],ax
mov ah,01110001b
mov ds:392[bx],ax
add bx,2
add di,1
loop s
mov ax ,4c00h
int 21h
code ends
end start |