Next chapter!
Now previous code returns a black screen. The asm file looks good, because it calls fpc_mod_longint, but seems that something goes wrong in the rtl.
Another question: I have seen that in generic functions there is fpc_mod_longint and fpc_mod_qword. The gba bios has only a function for mod... It is good/enough to replace fpc_mod_qword with same code for longint too?
BTW, I have tryied to compile rtl for smartlinking and it works pretty fine ^_^