assume cs: code
data segment
db 'welcome to masm'
data ends
code segment
start:
mov ax,0b800h; 002fh
mov es,ax
mov ax,data
mov ds,ax
mov bx,0
mov si,0
mov cx,15
mov di,0
s0:
mov al,ds:[bx+di]
mov ah,71h
mov word ptr es:[bx+si],ax
mov ah,24h
mov word ptr es:[bx+0a0h+si],ax
inc si
inc si
inc di
loop s0
MOV AH,0AH ;调用0A号中断,读入键盘输入的字符串.
INT 21H
mov ax,4c00h
int 21h
code ends
end start
闲着……学学写写汇编(只贴代码)(3)
最新推荐文章于 2024-07-18 10:50:56 发布