Quote Originally Posted by dmantione
There are two possibilities:
* The return value of fpc_mod_longint gets lost somehow. Perhaps we did something wrong with the "bx lr" somehow (I'm an apprentice at ARM assembler :think: )
* fpc_mod_longint overwrites a register that it isn't allowed to overwrite causing the loops to end prematurely or something.
Seems like the executable goes in a bad kind of loop, because I have noticed a loss of frame rate on the emulator (working executable runs at 100%, bad one runs at 70%).
[quote]
What kind of exe size did you get with smart]
Well, about 30/35 kb instead of 160. That's fine