what is kprintf?

mgarcia

You may change this now in User CP
Reaction score
48
Starting to look at Nuon dev stuff again, I would like to get printf working, to get a log of output.
Searching on Discord:
cubanismo: I'm not aware of a printf-debug mechanism in Nuance.
cubanismo: Right now you can use DebugWS() I believe to write stuff onto the screen.

Here is what I've found:

I was looking at the nm mapfile:
vmnm -f sysv -n test.cof > vmnm.txt

and found:
_kprintf |80000488| A |

It's from:
lib/librombios.a

But with no header reference.

The only place I found it mentioned on my SDK (I think there's two floating around) was in:
sample/Graphics/raydemo/demo.c

extern void kprintf(const char *, ...);

But it isn't used anywhere.

Anyone know what kprintf does? was it for TTY output, I would guess it so because it's bios related and not c related?

I am an assembly noob, so that's pretty much were I stop :/

It looks like it's kind of implemented in Nuance:


And raised as issue here
 
Last edited:

Stephen

NUON Lover!
Reaction score
95
Can't say I've ever seen this. I always used DebugWS() to get the cool vector font for debugging.
 

The Helper

Necromancy Power over 9000
Staff member
Reaction score
1,697
Typically that function is used to print debug information to the console. I am not sure the specifics of the NUON implementation but that is what it does typically.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top