Page 1 of 1

question about printf

Posted: Sun Jun 22, 2008 11:32 pm
by superfrog12
Hello,

I'm a newbie to PS2 development so please excuse this basic question:

Where does the output of the "normal" ee libc printf function go? From looking at the source code I figured out that the function uses the SifRPC API to call the write function (FIO_F_WRITE) on the IOP....is that write function part of the IOP's bios or where does it come from? And where does the output go? When using PS2Link it's being redirected to a pc client from what I understand but where would it normally go?

I'm asking this because I want to use the PCSX2 emulator for testing my ps2 programs and it would be nice to get it to display the printf output (it works using the ee serial i/o functions but I'm still curious about libc printf).

Thank you very much,
superfrog12

Posted: Mon Jun 23, 2008 12:19 am
by ragnarok2040
If you disable the recompiler core for the EE under Configure->CPU, and, if you're on Linux, you enable the console under Misc, you can see the printf output in the console the same way it looks under ps2link.

Posted: Mon Jun 23, 2008 7:43 pm
by superfrog12
ragnarok2040 wrote:If you disable the recompiler core for the EE under Configure->CPU, and, if you're on Linux, you enable the console under Misc, you can see the printf output in the console the same way it looks under ps2link.
that worked, thank you.