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 

PSPSOne or PSPcsx?
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
ector



Joined: 12 May 2005
Posts: 195

PostPosted: Sun Jul 17, 2005 11:17 am    Post subject: Reply with quote

Yes sorry you are right, it is executed (jump destination computed) first, but the jump is not actually taken until after another instruction is executed. Just making sure to point this out because it's a pretty alien concept for x86 people :)
Back to top
View user's profile Send private message
zabbyh



Joined: 15 Jul 2005
Posts: 13

PostPosted: Sun Jul 17, 2005 10:37 pm    Post subject: Reply with quote

mirrorsawlljk wrote:
How do you plan on dealing with controls? The PSX had an extra analog stick and two more shoulder buttons.


The normal PSX pad didn't have analog sticks. Therefore only a limited amount of games required them e.g. Ape escape is one that i can remember.

The shoulder button thing could be dealt with by like using the analog stick on the PSP and clicking it to the right to change the functionality of the shoulder buttons so they are recognised as R2 and L2 instead of R and L. OR click right on analog stick for R2 and Left for L2

Just a suggestion
Back to top
View user's profile Send private message
zacay



Joined: 17 Jul 2005
Posts: 10

PostPosted: Sun Jul 17, 2005 11:21 pm    Post subject: Reply with quote

SELECT + L1 = L2
SELECT + R1 = R2
Would be nice

AND
SELECT + ANALOG STICK = Second analog stick..

and pushing select button for 1 second without pushing something else then it would be a just SELECT
Back to top
View user's profile Send private message
thehalo2renegade



Joined: 26 Jun 2005
Posts: 11

PostPosted: Mon Jul 18, 2005 6:48 am    Post subject: Reply with quote

if you didn't get my PM then I think we can work together and get this working fast. I have some ideas so AIM me at thehalo2renegade
Back to top
View user's profile Send private message
PacManFan



Joined: 25 Jun 2005
Posts: 66

PostPosted: Tue Jul 19, 2005 2:23 am    Post subject: 1st demo test release Reply with quote

For all the people who have been asking, here's the first demo test release of PSPSOne. This one is hard-coded to run the pdx-dlcm.psx demo, but I've included a few other psx files as well. It runs at about .5 fps @ 222mhz, The emulation is really slow at this point, I'm still working on getting my recompiler to function properly (or at all). Once the recompiler is working, I expect to see a huge jump in performance. After that, I'll replace the GPU software rendering with the GE calls to hardware blit 2d triangles.

You'll need to run the KXploit tool on this. The directory must be PSPSONE, Also, you'll need to put in the scph1001.bin playstion bios into the /bios subdirectory for this to work.

http://home.comcast.net/~shernandez1337/PSPSOne.zip

I know it's really slow, but it's a start.

-PMF out
_________________
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
Back to top
View user's profile Send private message Send e-mail
thehalo2renegade



Joined: 26 Jun 2005
Posts: 11

PostPosted: Tue Jul 19, 2005 3:23 am    Post subject: Reply with quote

good work PacManFan hopefully after some polishing this will be able to run really fast and have a good library of games that work.
Back to top
View user's profile Send private message
emumaniac



Joined: 08 May 2005
Posts: 79

PostPosted: Tue Jul 19, 2005 4:17 am    Post subject: Reply with quote

awesome work just tried it and works good

posted some screens here -> http://psp-news.dcemu.co.uk/pspsone.shtml
Back to top
View user's profile Send private message
Krevnik



Joined: 09 Mar 2005
Posts: 71

PostPosted: Tue Jul 19, 2005 4:46 am    Post subject: Reply with quote

ector wrote:
Krevnik, it's not that simple. Problem is that PSX has a lot of memory mapped I/O, so yes, every single read/write will have to be checked if it is to one of these regions.


I just didn't mention MMIO being an issue directly, although I probably should have, to stop this comment in particular. What I was aiming more for was what crazyc suggested, where we could effectively reduce the level of complexity in the memory re-map.

The idea is that since we are on a single arch, we should be mucking with the code as little as possible. IMO, the tricker part of the JIT design would be context switch vs partial context, not memory re-maps. ;)

Context switches would allow for the JIT to not have to touch quite a few instructions, and completely remove register swapping overhead during a block of code. It seems this was the route Sony took with the PS2, IIRC, and should be the route taken with the PSP for similar reasons... act as a memory resident binary translator and OS-ish thing, not as an emulator.

Quote:

PSX had 2MB of RAM (and a similar amount of VRAM) so that is not much of a problem but the different memory map is.


I must have been thinking of RAM requirements to emulate (such as with VGS)
Back to top
View user's profile Send private message
thehalo2renegade



Joined: 26 Jun 2005
Posts: 11

PostPosted: Tue Jul 19, 2005 5:27 am    Post subject: Reply with quote

PacManFan check your PM box. Also I think a playable version might not be as far off as we think.
Back to top
View user's profile Send private message
chronomaster5042



Joined: 19 Jul 2005
Posts: 4

PostPosted: Tue Jul 19, 2005 1:24 pm    Post subject: control Reply with quote

I have a suggestion for controls have the analog stick be the l2 and r2 buttons:
ei moving the analog stick left would be L2 right would be R2 up could be L2&R2 (if you have to press both) and down could be the menu.
Back to top
View user's profile Send private message
Mike/Pippin



Joined: 05 Jun 2005
Posts: 40

PostPosted: Tue Jul 19, 2005 1:28 pm    Post subject: Reply with quote

easyer would be

R2=R1+/\
L2=L1+Up

Theyre close and easy to do.
Back to top
View user's profile Send private message
chronomaster5042



Joined: 19 Jul 2005
Posts: 4

PostPosted: Tue Jul 19, 2005 1:34 pm    Post subject: Reply with quote

Mike/Pippin wrote:
easyer would be

R2=R1+/\
L2=L1+Up

Theyre close and easy to do.


what if you need to use a button combo that is L1+L2+Up??????????? (dont even know if one exisits)

but a feature conld be added that would allow you to chose your own buttons configs :) but probably in a later version
Back to top
View user's profile Send private message
Mike/Pippin



Joined: 05 Jun 2005
Posts: 40

PostPosted: Tue Jul 19, 2005 2:26 pm    Post subject: Reply with quote

YoU hit L1 then L1 and up then up

wouldnt be hard
Back to top
View user's profile Send private message
Lithnor



Joined: 19 Jul 2005
Posts: 2

PostPosted: Tue Jul 19, 2005 9:00 pm    Post subject: problem Reply with quote

im **attempting** to run it on a 1.5 version firmware(using kxploit as well as the seipsptool(same thing only it lets you hide the "corrupted file") anyway, Very new to the scene, trying to learn as much as possible..... well... i got the .bin file i needed, put it in the /Bios directory, go to start the game, and i get the old "The game could not be started. (80020001)" error.... possibly having a file in the wrong directory, so just to narrow that off totally, i took every file and copy every file to ever single directory...... find out that that apparently isint what i am doing wrong, because it still gives me the same error.... possibly something i am missing? My current set up gives all the files you included in basicly every folder (because thats where i left off) as well as the .bin in the BIOS folder. at this point i am stumped because as i said... new to the scene, hopefing alot of this clears up, as im taking programming classes starting next semester.
Back to top
View user's profile Send private message
thunder.child



Joined: 24 Jun 2005
Posts: 7

PostPosted: Tue Jul 19, 2005 10:12 pm    Post subject: Reply with quote

Don't try to hide the corrupted icon if you are. The folders HAVE to be named PSPSONE right now, so adding spaces or underscores ( _ ) to try and hide it will give you that error.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed Jul 20, 2005 1:45 am    Post subject: Reply with quote

I think it's about time to move this into Software.
Back to top
View user's profile Send private message
thehalo2renegade



Joined: 26 Jun 2005
Posts: 11

PostPosted: Wed Jul 20, 2005 2:15 am    Post subject: Reply with quote

If anyone is having this run with KXPloit just head over to my thread has a tutorial
http://www.pspupdates.com/forum/showthread.php?t=7286&page=1&pp=10

And here is the file PacMan
http://uploadhut.com/view.php/217720.zip

http://www.uploadtemple.com/view.php/1121794220.zip
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Fri Jul 22, 2005 12:10 am    Post subject: Reply with quote

wrt to PS1 games running in 640x480 and demos running in 320x240. I think you'll find that many games boot into the hi-res mode to show logos and things, then drop back to low-res for the 3d. The PS1 really couldn't manage a high-res textured output. Also, 640x480 is often, if not always, interlaced.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
PacManFan



Joined: 25 Jun 2005
Posts: 66

PostPosted: Fri Jul 22, 2005 12:56 am    Post subject: Whoops Reply with quote

I meant to post that "Progress" message to this thread last night, looks like I missed. Well, anyways, for those who missed it, I managed to get some games (Driver, Dragon Ball Z Final Bout) to work with my emulator. I've got .BIN/CUE support working now. The Driver.Bin file was about 650MB, and the DBZ bin was about 150. My mem stick is only a 256 MB, so I had to test on my psp with DBZ.

Now that I've got .BIN support working nicely, I'm going to add compression through zlib so that the .bin files will be compressed to .gz files. After a few tests, It looks like most Bin's can be compressed by 50-65%. I'm going to work on a resource tool to remove/stub psx movies to help shrink things a bit. But for right now, I'm still working on my recompiler.

-PMF out
_________________
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
Back to top
View user's profile Send private message Send e-mail
rest05



Joined: 09 Jul 2005
Posts: 12

PostPosted: Fri Jul 22, 2005 1:06 am    Post subject: nice Reply with quote

its always nice to hear good news!!! :}
Back to top
View user's profile Send private message Send e-mail
shadow_91



Joined: 15 Jul 2005
Posts: 4

PostPosted: Fri Jul 22, 2005 2:29 am    Post subject: Reply with quote

so is it safe to assume that this emulator will not be *.iso compliant? whatever's fine for me, i can rip into any extension. and how exactly do you compress into the *.gz extension?
Back to top
View user's profile Send private message
PacManFan



Joined: 25 Jun 2005
Posts: 66

PostPosted: Fri Jul 22, 2005 2:48 am    Post subject: Success! Reply with quote

Well,

After replacing just a few file i/o routines with thier zlib equivalant, I now have .bin g'zipped files working. I compressed DBZ Final Bout from 158 MB bin file to a 70MB .gz file, and it actually loads faster! I think this is beacuse the i/o is so slow on the PSP mem stick.

If you want to know more about GZip , Google for it and find youself a nice windows frontend for it. GZip is basically a program like zip based on the ZLib source.

-PMF
_________________
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
Back to top
View user's profile Send private message Send e-mail
PacManFan



Joined: 25 Jun 2005
Posts: 66

PostPosted: Fri Jul 22, 2005 4:35 am    Post subject: Another screen shot Reply with quote

Spider man running from a compressed spiderman.bin.gz file.



-PMF
_________________
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
Back to top
View user's profile Send private message Send e-mail
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Fri Jul 22, 2005 5:00 am    Post subject: Reply with quote

Its impressive :)
good work.
Back to top
View user's profile Send private message
NBC



Joined: 17 Jul 2005
Posts: 5

PostPosted: Fri Jul 22, 2005 6:11 am    Post subject: Reply with quote

do you have some links that talks about recompiller ?
i'd like to understand how it works ^^
dont know if it writes code to a file then loads it like a elf or what,
Back to top
View user's profile Send private message
PacManFan



Joined: 25 Jun 2005
Posts: 66

PostPosted: Fri Jul 22, 2005 9:57 am    Post subject: recompiler Reply with quote

Google for "dynamic recompiler" or "Binary address translator" or "dynamic recompilation"

It writes it's code to a block of memory, then it calls that block of memory as though it were a function.

It's a type of self-modifying code.

Take a look at the source for pcsx or ultrahle, they've both got dynamic recompilers and interpreters.


-PMF
_________________
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
Back to top
View user's profile Send private message Send e-mail
Fluff



Joined: 22 Apr 2005
Posts: 35

PostPosted: Fri Jul 22, 2005 11:08 am    Post subject: Reply with quote

i would suggest the following for controler input.

L1 = L1
R = R1
analog up+L1 = L2 / R1 = R2
analog down+L1 = L1+L2 / R1+R2
analog left/right + select = Menu

saves complicated button combo's for trivial tasks, and besides that people suggesting "select+<key>", doesnt work on a psx emulator because most psx games use the select button
Back to top
View user's profile Send private message
morbidconfessions



Joined: 22 Jul 2005
Posts: 1

PostPosted: Fri Jul 22, 2005 11:19 am    Post subject: help me Reply with quote

scph1001.bin where do u gt this file from
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
thehalo2renegade



Joined: 26 Jun 2005
Posts: 11

PostPosted: Fri Jul 22, 2005 11:22 am    Post subject: Reply with quote

Google. It is an illegal file so I am not going to give you a link.
Back to top
View user's profile Send private message
NBC



Joined: 17 Jul 2005
Posts: 5

PostPosted: Fri Jul 22, 2005 1:14 pm    Post subject: Re: recompiler Reply with quote

PacManFan wrote:
Google for "dynamic recompiler" or "Binary address translator" or "dynamic recompilation"

It writes it's code to a block of memory, then it calls that block of memory as though it were a function.

It's a type of self-modifying code.

Take a look at the source for pcsx or ultrahle, they've both got dynamic recompilers and interpreters.


-PMF


ok this has just enligted me,

Quote:

It writes it's code to a block of memory, then it calls that block of memory as though it were a function.

so you just copy the translated bytes in ram then call a pointer to it :)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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