call、ret
2018-12-19 本文已影响0人
猩猩隊長
assume cs:code,ds:data
data segment
str db 'hello asm!$'
ends
code segment
start:
mov ax,data
mov ds,ax
call print
mov ah,4ch
int 21h
ends
print:
mov ah,9h
int 21h
ret
end start