Home > other >  How from the subroutine jump to the main assembly
How from the subroutine jump to the main assembly

Time:09-19

CodePudding user response:

Masm should be ok, just a little high version of the label after add two colons are global label, such as the begin: :
A colon, the default is the local label inside the procedure, the procedure is not visible to the outside, so different sub routine can define some generality of the same name of label,
By sub routine returns, however, generally do not approve of using JMP instruction, but a ret return to normal, and then according to the return value again later, or go to the begin: or... .

CodePudding user response:

reference 1/f, zara's reply:
masm should be ok, just a little high version of the label after add two colons are global label, such as the begin: :
A colon, the default is the local label inside the procedure, the procedure is not visible to the outside, so different sub routine can define some generality of the same name of label,
By sub routine returns, however, generally do not approve of using JMP instruction, but a ret return to normal, and then according to the return value again later, or go to the begin: or... ,
thank you brother, I've tried, perfect

CodePudding user response:

Is also the first time I know that there are: the usage, thank you ~ ~ ~

  • Related