Re: A83: calls


[Prev][Next][Index][Thread]

Re: A83: calls




On 26-Sep-98, Jkhum98@aol.com wrote:


>Don't you just have to do the appropriate number of "ret"s in the many
threads
>of your calls...? Well, I can tell you that this Example would not work as it
>is. Just put a "ret" after every call you make, but if you put one after
"call
>second_label" that should be the end of the program and return to the OS. I
>think its possible in this manner, but now I have a question coming off this.
>You could not do a Jump in there anywhere? You would have to return from your
>call first to do this correctly, right...?
>--Jason K.
>>
>>Is it legal to make a call within a call? For example:
>>
>>
>>first_label:
>>     call second_label
>>
>>second_label:
>>     call third label
>>
>>third_label:
>>     ret
>>
>>From: Chris
>>mecad@scv.net
>>

Actually, that piece of code would work just fine. Only, if some more
instructions were inserted there would be a possibility that they executed
twice or something like that. But this piece of code would work fine. =)

Linus


References: