Uhm... ok! Even stripping out "bx lr" it works. This code comes from libgba (that is a part of devkitpro)... I have simply put it inside an asm-end block, so I don't really know how'n'why it works (maybe magic?) :lol:
There are a bunch of other bios functions too, so I'll try to put it in system.pp