PDA

View Full Version : Porting the psone to psp. . .



YourStillWithMe
August 13th, 2006, 04:04
I have quite the idea everyone but. . . . first i need YOUR HELP. I need to first convert the psone games that i own (like 2 for starters) into .iso format. Does anyone know any programs to do this? Please research, search your torrents, most trusted sites, ftp's, etc! No i am NOT looking to pirate or anything i own all my psone games! Come on Final Fantasy, Tony Hawk, and Metal Gear fans help!

Whats my idea? It's secret no im kidding but i'd like to try the idea out first, won't take long.

I seriously think the whole difficulty of emulating the psone is seriously being overlooked.

Apoklepz
August 13th, 2006, 04:50
Try Alcohol 120%. There's a free trial version around the internet that'll help you with what tou need.

Accordion
August 13th, 2006, 12:41
im guessing you want to change the psone games to use psp instructions...

ACID
August 13th, 2006, 12:45
im guessing you want to change the psone games to use psp instructions...
LOL thats what i was thinking also.


Try Alcohol 120%. There's a free trial version around the internet that'll help you with what tou need.
Dont we call that ron cana. LOL

yaustar
August 13th, 2006, 16:40
It sounds more like he is trying to run the ISOs via the standard ISOs loaders for the PSP. (clue: "It won't take long"). Rewritting the instructions will take MUCH llonger.

Won't work, the PSP architecture is different to the PS1. Even the CPUs are different enough for the two to be incompatible at least without a recompile.

http://en.wikipedia.org/wiki/PlayStation
http://en.wikipedia.org/wiki/PlayStation_Portable

YourStillWithMe
August 14th, 2006, 08:19
yeah i'll admit it the idea was to format it into .iso and then run it via devhook or fastloader and neither worked gotta admit its not that crazy there both the same format of file. . . .

and thanks i did use alchohol120% i have a feeling i'll need that in the future for the ps1 games i have.

yaustar
August 14th, 2006, 09:46
The same 'format' of file is irrevelant. The instructions in the binary executable would be different as the platform hardware is different (at least).

ACID
August 14th, 2006, 09:58
But there are a lot of similaritys between the two

yaustar
August 14th, 2006, 10:05
Similarities != Same
For example, the PS1 uses a custom MIPS R3000 as the CPU, the PSP uses a custom MIPS R4000.

There could have been any number of changes in the instruction set (even more so when they have been modified). It's like trying to navigate around the world now using a map from the 1800's. You can expect the layout of the world to be 'similar' but hell, you are going to run into trouble when one area is not the same anymore.

A better example is the current N64 emulators. The hardware is 'similar' to the PSP's (at least in regards to the CPU) but yet the developers had to write a dynamic instruction translater from the ground up to even get the games running.

Zion
August 14th, 2006, 23:29
It's like trying to navigate around the world now using a map from the 1800's

lol, now thats sarcasm ;) :p

bronxbomber92
August 15th, 2006, 04:21
The psone emulator source code is avaliable for download here: http://rapidshare.de/files/28679439/PSP_PSPSOne_Source.rar.html

mavsman4457
August 15th, 2006, 04:45
Is that PacManFan's?

zodttd
August 15th, 2006, 05:08
From my expierence from working on the psx4all PS1 emulator for handhelds such as the GP2X, Gizmondo, and other relavitely low powered systems, I can say this...if you can call static recompilation easy, I could use your help. ;)

Converting a PS1 game's ISO, which contains MIPS R3000A bytecode, and translating each instruction to an equivalent PSP R4000A isn't exactly an easy task. There are differences between the two architectures hence the difference revision of processor (duh), and those differences usually equate to something other than a 1 to 1 instruction translation. Meaning it might take (random magic number) 4 instructions to change a R3000A instruction ADDIU to the equivelant on the R4000A. That means more registers will most likely have to be used, which in turn means you can't map every register. Now you have to store the data needed to translate the instruction in memory, most likely a structure of registers. It goes on and on.

Static recompilation also isn't "possible" in a lot of cases of emulation involving self modifying code. Just for reference.

I am currently working on a R3000A -> ARM dynamic recompiler, which is usually slower than static recompilation, but doesn't involve converting of the ISO beforehand as it does the conversion on the fly, and keeps a translation cache to speed things up. GP2X users of psx4all for instance, should notice a 2x - 3x performance increase when bug's in the dynarec are ironed out, and it is further optimized.

What the PSP will most likely need to get a PS1 emulator running at decent speed is either recompilation, the use of the Media Engine (which is a fancy term for a second MIPS), or best yet... both.

The PSP does have the edge since it uses a similar processor which can be used to interpret or recompile the "GTE" of the PS1 which is used for math operations, and can be mapped easily to the PSP's vfpu.

Hope this was somewhat informative.

bronxbomber92
August 15th, 2006, 05:10
yes it is

Video_freak
August 15th, 2006, 05:10
wow. thanks for the info zodttd. i never thought it would be that hard (i knew it was hard but)...

ACID
August 15th, 2006, 05:18
I here youzodttd i wish we never had to work so we can have time to help.

zodttd
August 15th, 2006, 05:32
Oh it get's much harder. The PS1 is a monster to emulate. A lot is still not documented as well. Open source PS1 emulators are usually "handed down code" and were left in their early stages. Some very important subsystems of the PS1 are still fairly unclear, such as the timers/r oot counters. There is the cdrom subsystem that is still quite messy. Where most emulators render a frame, display the frame, take input from the user and repeat...most PS1 emulators work by an interrupt system where interrupts are requested and fulfilled in a queue.

If it wasn't for Unai of Chankast fame for creating his own PS1 GPU for psx4all, there would have been many game's that would look very inaccurate, though there is Pete's GPU which is quite nice.

Oh, and then there's SIO, serial IO, for joypads and memory cards. It's heavily dependant on the timing of interrupts, and if one was to try to underclock the PS1 clockspeed in an emulator they might notice many games no longer can save to a memory card albeit higher performance.

There's so many things that can go wrong, and trying to support such a huge library of games is tough. So if the PSP gets a PS1 emulator, it will be far from "perfect".

I'd really like to see some of the PC/PocketPC PS1 emulator writers subscribed to dcemu give their thoughts on this.

zodttd
August 15th, 2006, 05:43
Out of curiousity, a look at PSPSOne's source shows it's a port of PCSX with a custom written R3000A -> R4000A dynarec. There's lots of improvements that could be made still it seems. Now why the source was released and what happened to him...

Being familar with PCSX, I can say there's some very simple changes that could be made to that source to speed it up on the platforms it runs on. It falls under the underclocking stuff I mentioned above. All the issues mentioned also relate to PCSX as well.

I'm looking through it and it doesn't seem to have been modified much in terms of the emu's "guts" besides the change from an interpreter/dynarec for 386/SH4 to a R4000A dynarec.

If anyone needs help with PCSX, just PM me.

jman420
August 15th, 2006, 07:49
quick question, is it possible to use the PSX's BIOS file to emulate the PS1's overall IO system on the PSP using the instruction set from the BIOS? or is the BIOS simply just for the "Firmware" of the PSX?

I would also like to point out just how many failed PC PSX emulators there have been (or not failed, but poor quality) And how even when you have processing of a superior system, the emulators still dont generaly work.. AdriPSX is just about the only PS1 emulator I have ever known, that works...

Also I beleave that it should be possable to get the source for AdriPSX, however it is written in C and x86 Assembly, so it could be difficult to port anyway..

Gizmo356
August 15th, 2006, 08:54
my brain is melting too much smart talk.....:D it would be awesome

yaustar
August 15th, 2006, 10:58
lol, now thats sarcasm ;) :p
??? No it isn't. It was a literal statment. I was actually serious, trying to figure what has changed from one revision of a chip to another without proper documentation is like "trying to navigate around the world now using a map from the 1800's".

foxtrot24
August 16th, 2006, 20:27
I dont know if this has been said yet but sony is making a PSone emulator themselves. just wait a while for that particular update to come out then a little while longer for someone to emulate that firmware for 1.5. it will probably take a really long time but hey, you have to wait for something important sometime or another.

Tinnus
August 22nd, 2006, 20:23
Yeah and they pay Sony to play games you bought years ago.

Prasoc
August 22nd, 2006, 20:55
I think they will come out in UMD format like games and videos because they want to milk the psp market to get more money

Zion
August 22nd, 2006, 21:07
??? No it isn't. It was a literal statment. I was actually serious, trying to figure what has changed from one revision of a chip to another without proper documentation is like "trying to navigate around the world now using a map from the 1800's".

oh, sorry :D