assume cs:code,ds:data
data segment
msg db "hello world"
data ends
code segment
start:
mov ax,data
mov ds,ax
mov bx,0b800h
mov es,bx
mov cx,11
mov si,0
mov bx,0
mov ah,01000010b
s:mov al,ds:[si]
mov es:[bx],al
mov es:[bx+1], ah
inc si
add bx,2
loop s
mov ax,4c00h
int 21h
code ends
end start
运行结果:
汇编语言hello world 代码实现,布布扣,bubuko.com
时间: 2024-10-23 13:21:00