Login
Forum Help



Post Your Message
Username: (Login)

Topic:
Message:
 


Previous Messages
Posted By

SVS
on 2025-06-10
02:58:22
 Re: Kernal screen print

Beware, with this tricked routine, to not exceed the 255 bytes of data message.
SukkoPera1
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.
Fuzzweed1
Posted By

Fuzzweed
on 2025-06-09
07:45:45
 Kernal screen print

Very quick one.
I see here
https://plus4world.powweb.com/plus4encyclopedia/500242
FFD2 loop can be replaced with single call to FF4F

But my search for FF4F doesn't explain this further. Is this print message routine rather than print character? What are the initial register values required to call FF4F? Message location and length maybe?

Copyright © Plus/4 World Team, 2001-2025. Support Plus/4 World on Patreon