|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code,ds:data
data segment
db 'welcome to masm!'
data ends
code segment
start: mov ax,data
mov ds,ax;初始化数据段
mov ax,0b800h
mov es,ax;定义写入数据地址
mov dx,0
mov bx,0;定义data段字节
mov cx,16
mov si,0
s: mov dl,[bx]
mov es:[si+720h],dl
inc si
inc bx
mov dh,04h
mov es:[si+720h],dh
inc si
loop s
sub si,si
sub bx,bx
mov cx,16
s0: mov dl,[bx]
mov es:[si+7c0h],dl
inc si
inc bx
mov dh,04h
mov es:[si+7c0h],dh
inc si
loop s0
sub si,si
sub bx,bx
mov cx,16
s1: mov dl,[bx]
mov es:[si+860h],dl
inc si
inc bx
mov dh,04h
mov es:[si+860h],dh
inc si
loop s1
hold:
hlt
jmp hold
mov ax,4c00h
int 21h
code ends
end start
|
|