question about printf

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
superfrog12
Posts: 14
Joined: Sun Jun 22, 2008 11:20 pm

question about printf

Post 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
ragnarok2040
Posts: 202
Joined: Wed Aug 09, 2006 1:00 am

Post 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.
superfrog12
Posts: 14
Joined: Sun Jun 22, 2008 11:20 pm

Post 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.
Post Reply