You call a function in assembly by doing a
bl to the address of the function but I don't think you will get anywhere with this overall since the
OSScreen functions won't really work. I tried it before in games and it crashes. Maybe I made a mistake though. In C printing to the screen looks similar to this:
Code:
void writeScreen(char message[100], int secondsDelay) {
OSScreenClearBufferEx(0, 0);
OSScreenClearBufferEx(1, 0);
OSScreenPutFontEx(0, 14, 1, message);
OSScreenPutFontEx(1, 14, 1, message);
sleep(secondsDelay);
OSScreenFlipBuffersEx(0);
OSScreenFlipBuffersEx(1);
}
First of all you have to call
OSScreenInit() though to initialize the screen.
I still recommend getting it to work in C first and then maybe try and write it in assembly but if you can use C you may just copy the compiled function's assembly and use that for a code or whatever.