sioloader

Downloadable items posted by PSXDEV members are within this forum.
danhans42
BANNED
BANNED
Posts: 329
Joined: Nov 28, 2012

Post by danhans42 » July 26th, 2019, 3:44 am

😀😀

Yeah not much at all that large really. NXFLASH loads so quick I can't even time it lol.

Saying that, loading a 1.5mb EXE using psexe & caetla on an xplorer isn't exactly fast either

User avatar
Squaresoft74
/// PSXDEV | ELITE ///
/// PSXDEV | ELITE ///
Posts: 303
Joined: Jan 07, 2016
PlayStation Model: SCPH-7502
Location: France
Contact:

Post by Squaresoft74 » July 26th, 2019, 4:13 am

Works like a charm with Xrider's STU. :clap
Any chance to make PAL/NTSC videomode selectable ?

danhans42
BANNED
BANNED
Posts: 329
Joined: Nov 28, 2012

Post by danhans42 » July 26th, 2019, 4:17 am

Squaresoft74 wrote: July 26th, 2019, 4:13 am Works like a charm with Xrider's STU. :clap
Any chance to make PAL/NTSC videomode selectable ?
Excellent, thanks again Squaresoft for testing.


I'm trying not to have any pad routines at the moment, so not at this minute but definitely will do it the future. That being said I can compile a version for you that just defaults to NTSC if that helps?

User avatar
Squaresoft74
/// PSXDEV | ELITE ///
/// PSXDEV | ELITE ///
Posts: 303
Joined: Jan 07, 2016
PlayStation Model: SCPH-7502
Location: France
Contact:

Post by Squaresoft74 » July 26th, 2019, 4:20 am

A forced NTSC build would be very appreciated. :)

rama3
/// PSXDEV | ELITE ///
/// PSXDEV | ELITE ///
Posts: 510
Joined: Apr 16, 2017

Post by rama3 » July 26th, 2019, 4:30 am

It may be a little off topic, but I wonder if it isn't possible to use some other video mode detection hint than the "E/A/I" char of the BIOS.
One reason for this is that BIOS swaps are becoming more popular. Especially NTSC-J consoles really benefit from a PAL BIOS.

I don't know of other "region bits", but I know that the PAL and NTSC(U/J) GPU oscillators are different.
Using a CPU timer to watch the length of PAL and NTSC field should tell the programmer exactly what kind of hardware is present.

If the timer is correct for PAL but not for NTSC > It's a true PAL console
If the timer is correct for NTSC but not for PAL > It's a true NTSC console

If the timer is correct for NTSC and for PAL > It's a Net Yaroze or dual oscillator console > prefer NTSC (always prefer NTSC! :p )

(If the timer is incorrect for both modes > It's a broken console or bad / weird mod > prefer NTSC as CVBS color will not work in any case, so might as well go 60Hz.)
(This last case may also happen with some rare consoles where the PAL clock input to the GPU is severed by the factory. Wrap the detect code in a timeout, then go to NTSC mode if it does time out.)

danhans42
BANNED
BANNED
Posts: 329
Joined: Nov 28, 2012

Post by danhans42 » July 26th, 2019, 4:52 am

Squaresoft74 wrote: July 26th, 2019, 4:20 am A forced NTSC build would be very appreciated. :)
There you go mate.

Hope it does what you need it to!

Thanks
You do not have the required permissions to view the files attached to this post.

danhans42
BANNED
BANNED
Posts: 329
Joined: Nov 28, 2012

Post by danhans42 » July 26th, 2019, 4:56 am

rama3 wrote: July 26th, 2019, 4:30 am It may be a little off topic, but I wonder if it isn't possible to use some other video mode detection hint than the "E/A/I" char of the BIOS.
One reason for this is that BIOS swaps are becoming more popular. Especially NTSC-J consoles really benefit from a PAL BIOS.

...
Might be best in a new topic as that sounds like a whole new discussion. I only use this method as it is what everyone else uses but completely see your point, especially with the interest in flashing different BIOS's increasing.

User avatar
Squaresoft74
/// PSXDEV | ELITE ///
/// PSXDEV | ELITE ///
Posts: 303
Joined: Jan 07, 2016
PlayStation Model: SCPH-7502
Location: France
Contact:

Post by Squaresoft74 » July 26th, 2019, 5:12 am

Many thanks Dan for the NTSC build, it covers my needs perfectly ! :)
rama3 wrote: July 26th, 2019, 3:36 am very little software would be 1.5 megs, right? :)
As far as i'm concerned i'm mainly testing PSF files converted back to exe so they're usually quite big files.
Not sure if that could be considered/possible, but how about adding PSF loading support ?

PSF Format Specification.
PSF1 Format.

Once uploaded it would be up to the Sio loader to process the exe unpacking before executing it but then memory space limitation might be an issue there i guess. :?

I've also tried compressing exe using UPX:

Code: Select all

upx.exe --force --brute input.exe -o output.exe
It works pretty nicely, just a little bit slower to boot but worth the upload time gain.
Not sure if handling native PSF file would be faster and/or bring any other benefit beside avoiding to convert/compress exe first.

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » July 26th, 2019, 12:23 pm

rama wrote: It may be a little off topic, but I wonder if it isn't possible to use some other video mode detection hint than the "E/A/I" char of the BIOS.
You mean this one?

Code: Select all

// SCEx string address in the BIOS (we *must* do a !='E' check or else a Japanese PSX will treat it as PAL)
if (*(char *)0xBFC7FF52!='E')
{
    // NTSC
}
else
{
    // PAL
}
The only other way is to check what mode the GPU is in, check the VBLANK timing or somehow check the clock speed.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

danhans42
BANNED
BANNED
Posts: 329
Joined: Nov 28, 2012

Post by danhans42 » July 27th, 2019, 1:15 am

Squaresoft74 wrote: July 26th, 2019, 5:12 am Many thanks Dan for the NTSC build, it covers my needs perfectly ! :)
rama3 wrote: July 26th, 2019, 3:36 am very little software would be 1.5 megs, right? :)
As far as i'm concerned i'm mainly testing PSF files converted back to exe so they're usually quite big files.
Not sure if that could be considered/possible, but how about adding PSF loading support ?

PSF Format Specification.
PSF1 Format.

Once uploaded it would be up to the Sio loader to process the exe unpacking before executing it but then memory space limitation might be an issue there i guess. :?

I've also tried compressing exe using UPX:

Code: Select all

upx.exe --force --brute input.exe -o output.exe
It works pretty nicely, just a little bit slower to boot but worth the upload time gain.
Not sure if handling native PSF file would be faster and/or bring any other benefit beside avoiding to convert/compress exe first.
Thanks for this.. never heard of UPX before and will certainly look into it. I assume the utility packs the EXE and adds a decompression routine to the output EXE?

rama3
/// PSXDEV | ELITE ///
/// PSXDEV | ELITE ///
Posts: 510
Joined: Apr 16, 2017

Post by rama3 » July 27th, 2019, 3:09 am

I've opened a thread for the default video mode stuff here:
http://www.psxdev.net/forum/viewtopic.php?f=41&t=3464

Please feel free to share your opinions! ;p

danhans42
BANNED
BANNED
Posts: 329
Joined: Nov 28, 2012

Post by danhans42 » July 28th, 2019, 8:22 am

Will look to add an option to the client so you can pack the EXE with UPX prior to transmission.

Only tried it for the first time with trancetro and it worked great. It will rely on it being installed however
Thank you for mentioning it Squaresoft74.. it squashed over 700kb into under 150 with no noticeable delay to execution as far as I can tell

User avatar
Squaresoft74
/// PSXDEV | ELITE ///
/// PSXDEV | ELITE ///
Posts: 303
Joined: Jan 07, 2016
PlayStation Model: SCPH-7502
Location: France
Contact:

Post by Squaresoft74 » July 28th, 2019, 1:38 pm

danhans42 wrote: July 27th, 2019, 1:15 amI assume the utility packs the EXE and adds a decompression routine to the output EXE?
Yup, looks like it works that way.

I only recently knew about UPX supporting PS1 executable thanks to kHn who pointed it out to me. :)
Sounds like a good idea to add it as an optional step to the client.
Might need to play a bit with the compression options to check what gives the best results without slowing down the boot process too much.

Using "-9" or "--best" switches instead of "--brute" generated a slightly bigger file but fixed my slow boot issue.

Arnold101
Curious PSXDEV User
Curious PSXDEV User
Posts: 18
Joined: Jul 18, 2018

Post by Arnold101 » May 30th, 2021, 10:40 am

danhans42 wrote: July 26th, 2019, 4:52 am
Squaresoft74 wrote: July 26th, 2019, 4:20 am A forced NTSC build would be very appreciated. :)
There you go mate.

Hope it does what you need it to!

Thanks
how works?

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests