[讨论]有关子程序调用
请将以下程序中的子程序调用改成段间调用!!!DATA SEGMENT
STR DB “abcdef
LEN DW ?
DATA ENDS
STAK SEGMENT
DB 128 DUP(?)
STAK ENDS
CODE SEGMENT
ASSUME CS: CODE, DS: DATA, SS:STAK
START:
MOV AX, DATA
MOV DS, AX
MOV AX, STAK
MOV SS, AX
LEA SI, STR
CALL SCONT
MOV LEN, BX
MOV AH, 4CH
INT 21H
SCONT PROC NEAR
PUSH SI
XOR BX, BX
MOV SI, BX
NEXT:
CMP BYTE PTR[SI],-1
JZ OVER
INC BX
INC SI
JMP NEXT
OVER:
POP SI
RET
SCONT ENDP
CODE ENDS
END START
希望大侠们都能提供一些建议,谢谢!!!!