|

楼主 |
发表于 2017-3-23 22:42:24
|
显示全部楼层
^_^谢谢呵呵呵,最主要的
您能帮我看看这个么
我应该用什么怎么操作才能看到结果
做了一下改动,不知道寄存器有没有冲突,所以让您帮我操作一下看能不能显示
assume cs:code,ds:date,ss:stack
date segment
db 'welcome to masm!'
db 2,24h,71h
date ends
stack segment
dw 8 dup (0)
stack ends
code segment
start:mov ax,stack
mov ss,ax
mov sp,16
mov ax,date
mov ds,ax
mov ax,0b800h
mov es,ax
mov bx,0
mov bp,16
mov cx,3
s :push cx
mov si,bx
mov di,0
mov cx,16
s1:mov al,[di]
mov es:720h[si],al
mov ah,ds:[bp]
mov es:721h[si],ah
inc di
add si,2
loop s1
add bx,160
inc bp
pop cx
loop s
mov ax,4c00h
int 21h
code ends
end start
|
|