Posted By
 SukkoPera on 2025-06-09 08:51:46
| Re: Kernal screen print
$ff4f is the so called "PRIMM" function, that is "PRint IMMediate".
The way it works is a bit weird:
jsr PRIMM !pet "hello world", $00
Basically the jump to PRIMM is followed by the characters to be printed, terminated by a NULL byte ($00).
The function will adjust the return address on the stack so that it returns to the instruction following the string, after it has done its job. 1 |