does a jump statement behave like a call statement?
i.e.: if i wrote this;
monkey:
push cx
mov cx, [underfelt]
inc cx
cmp cx, 133
je handbag
mov [underfelt], cx
pop cx
ret
handbag:
mov cx, 0
ret
then if the value of cx was incremented to 133, and the procedure jumped to the handbag function, when it hit the ret command would it return to where it left off in the monkey function? or would i have to include a pop cx and move cx back into the variable in the handbag function?
i.e.: if i wrote this;
monkey:
push cx
mov cx, [underfelt]
inc cx
cmp cx, 133
je handbag
mov [underfelt], cx
pop cx
ret
handbag:
mov cx, 0
ret
then if the value of cx was incremented to 133, and the procedure jumped to the handbag function, when it hit the ret command would it return to where it left off in the monkey function? or would i have to include a pop cx and move cx back into the variable in the handbag function?