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
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
本文标题:call、ret
本文链接:https://www.haomeiwen.com/subject/czxdkqtx.html
网友评论