forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

question about printf

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
superfrog12



Joined: 22 Jun 2008
Posts: 14

PostPosted: Sun Jun 22, 2008 11:32 pm    Post subject: question about printf Reply with quote

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
Back to top
View user's profile Send private message
ragnarok2040



Joined: 09 Aug 2006
Posts: 230

PostPosted: Mon Jun 23, 2008 12:19 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
superfrog12



Joined: 22 Jun 2008
Posts: 14

PostPosted: Mon Jun 23, 2008 7:43 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group