HomeForumsWhat's newResources 
 
 
Hey, Is it possible to do this?
Zaksund - Mar 12, 2003
 Zaksund Mar 12, 2003
Hey all,

I'm trying to figure out if it would be possible to read data from and to a PAR from a PC while an SGL program was running. I know it sounds like a pretty weird question, but I was working on a backup routine and just thought I'd find out once and for all.

thanks!!

 antime Mar 12, 2003
I don't see why not, as long as your program supports it. The PAR can't cause interrupts, so you have to poll the status flag every once in a while to see if the PC wants to talk. You could use the built-in communication routines, but you'd have to make some glue functions as they don't use the SuperH calling convention IIRC. Charles MacDonald's site... should be useful, and there's a disassembly of the PAR communication routines at Y. Tanaka's site....

 TakaIsSilly Mar 12, 2003
Nevermind ^^; Antime's explained better than me.

 AntiPasta Mar 13, 2003
well, the PSX PAR has some nifty PC file server function

basically just call OpenFile with "pcdrv:\" in the filename...

Maybe we should also develop some ROM replacement for the PAR just like the PSX people did, instead of using the built-in

software which wasn't intended for this use...

 antime Mar 13, 2003
That can more easily be implemented as a library, the only difference being that the code would reside in RAM instead of cart ROM.