the following droves me crazy. please take the code
and step through the code in the pb debugger. i was really
wondering, that i got half baken results without doing
anything in my asm procedure.
------------------
[This message has been edited by Torte Torsten (edited August 05, 2001).]
and step through the code in the pb debugger. i was really
wondering, that i got half baken results without doing
anything in my asm procedure.
Code:
$DIM ALL #REGISTER NONE #COMPILE EXE #INCLUDE "WIN32API.INC" FUNCTION F1() AS LONG DIM x AS LONG x = 3 l1: x = x -1 IF x > 0 THEN GOTO l1 END IF END FUNCTION FUNCTION F2() AS LONG DIM x AS LONG x = 3 l1: x = x -1 IF x > 0 THEN GOTO l1 END IF END FUNCTION FUNCTION F3() AS LONG !pushad !mov esi ,3 l1: !dec esi !jnz l1 !popad END FUNCTION FUNCTION F4() AS LONG !pushad !mov esi ,3 l1: !dec esi !jnz l1 !popad END FUNCTION FUNCTION PBMAIN() AS LONG CALL F2() CALL F4() END FUNCTION
[This message has been edited by Torte Torsten (edited August 05, 2001).]
Comment