|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code,ds:data
data segment
db'welcome to masm!'
db 02h,24h,71h
data ends
code segment
start: mov ax,0B872h
mov es,ax
mov ax,data
mov ds,ax
mov bx,0
mov ax,0
mov si,0
mov cx,16
s: mov al,[bx]
mov es:[si+0],al
mov al,[bx]
mov es:[si+0a0h],al
mov al,[bx]
mov es:[si+140h],al
inc bx
add si,2
loop s
mov ax,0
mov si,0
mov cx,16
s0:mov al,[10h]
mov es:[si+1h],al
mov al,[11h]
mov es:[si+0A1h],al
mov al, [12h]
mov es:[si+141h],al
add si,2
loop s0
mov ax,4c00h
int 21h
code ends
end start |
|