assume cs:code,ds:a
a segment
db "welcome to masm!"
a ends
code segment
start:
mov ax,0f9fh
mov dx,000h
sub ax,dx
mov dx,0000
mov bx,2
div bx
sub ax,16
mov di,ax
and ax,11111110b
sub ax,di
mov cx,ax
jcxz short s
dec di
mov cx,16
s:mov ax,a
mov ds,ax
mov bl,ds:[si]
mov ax,0b800h
mov ds,ax
mov ds:[di],bl
inc di
mov byte ptr ds:[di],71h
inc di
inc si
loop s
mov ax,4c00h
int 21h
code ends
end start
现在开始学汇编了 希望多多交流QQ:307651871 |