This is a clever hack, nice work!
Saturn proof-of-concept bootloader Pseudo Saturn
Sega Saturn Programming and DevelopmentIf you like I can upload a CD image with a few updates on it (The last update was 2.02C (C it not shown in the menu after it's flashed as it's just a minors codes update so it's the same as 2.02))
EDIT:
While I have my capture cable out I might as well do a video later today of it getting flashed with AR4M+ 2.02C firmware (via a Pseudo patched CD) and back to PSEUDO SATURN firmware via the swap trick (I use a model 1 so the swap trick is easy as there is a visual reference via the CD access light), unfortunately I can't show the installer.iso working as it does not like my AR4M+.
EDIT:
Booting of the Atlus disc is fine with PSEUDO but booting the SGM from an Atlus results in a reboot, but you can do the normal swap trick (without the action replay plugged in) to boot the Atlus disc and load the SGM, then you can re-insert the action replay and re-flash it with AR4M+ firmware
If you really want I can make a vid of that
However, I'd still be interested in how well the loader works with this: I have no idea how changing PDS's discs would work with just the swap trick, so I also tried 'unlocking' the drive with a System Disc first, which unfortunately results in the game locking up on a black screen immediately after the 'Team Andromeda presents' screen.
Region patches are not needed by the way, I also use a PAL console and most games I have played are NTSC but I do have a small display mode switch between PAL and NTSC (An easy mod to do), but the J - U - E code does nothing for the display and does nothing for you if you are using a cart that makes the console region free anyway.
If you don't have a switch mod to make your console display in NTSC mode then just get the PAL version of this game instead, as forcing some game to run in PAL display mode that are made for NTSC display mode will make them go out of sync and some games will just not work or freeze as a result
I don't personally know if disc swapping works at the games disc change point though, that is something I asked myself in this thread, I can't see it working though, might do if the Action Replay is always active, I can test that though easy enough just by booting CD2 then starting a new game where it should ask for CD1.
The reason it would freeze though is because you used a different disc before the backup is because the system has the toc of the "System Disc" stored and the CD-R does not match that and fails to load anything past the main exec file.
EDIT seems I can't test that way and CD 1 after all the FMVs and after you gave a name scenes it loads to a black screen rather than to in game, the game also asks for the cart to be removed so if it is not removed before that message it will also just reboot the system
If you don't have a switch mod to make your console display in NTSC mode then just get the PAL version of this game instead, as forcing some game to run in PAL display mode that are made for NTSC display mode will make them go out of sync and some games will just not work or freeze as a result
I don't personally know if disc swapping works at the games disc change point though, that is something I asked myself in this thread, I can't see it working though, might do if the Action Replay is always active, I can test that though easy enough just by booting CD2 then starting a new game where it should ask for CD1.
The reason it would freeze though is because you used a different disc before the backup is because the system has the toc of the "System Disc" stored and the CD-R does not match that and fails to load anything past the main exec file.
EDIT seems I can't test that way and CD 1 after all the FMVs and after you gave a name scenes it loads to a black screen rather than to in game, the game also asks for the cart to be removed so if it is not removed before that message it will also just reboot the system
IKR?
There are several reasons to that (not that anyone cares), including the fact that it wasn't until recently (PS2 era IIRC) that consoles started to get officially released in my country. Previously, only some specialized retailers imported them, and that made them even more expensive than they were. Plus they imported mainly the consoles that had a huge market in the US, which wasn't really the case for the Saturn. And I was still in high-school and had a SNES and my parents were against buying anymore consoles.
Unfortunately things only got worse economically speaking, and now individuals require special permission to import anything (as small or cheap as it may be) which is hard to obtain. To top it off, our local eBay has crazy prices for everything manufactured outside the country...
Anyway, back to topic...
There are several reasons to that (not that anyone cares), including the fact that it wasn't until recently (PS2 era IIRC) that consoles started to get officially released in my country. Previously, only some specialized retailers imported them, and that made them even more expensive than they were. Plus they imported mainly the consoles that had a huge market in the US, which wasn't really the case for the Saturn. And I was still in high-school and had a SNES and my parents were against buying anymore consoles.
Unfortunately things only got worse economically speaking, and now individuals require special permission to import anything (as small or cheap as it may be) which is hard to obtain. To top it off, our local eBay has crazy prices for everything manufactured outside the country...
Anyway, back to topic...
There did used to be a code that allowed you to use PDSaga with an action reply present if that's any help?
Edit - Found it
Master:
F6000914 C305
B6002800 0000
Code:
06002ED0 0009 (JP Version)
06002EB0 0009 (US & PAL Versions)
Also I can confirm 100% that saga saves the game after completing each disc so just loading the next disc from a cold boot and loading the save will work.
Now its just a way of still being able to use the above codes!
Edit - Found it
Master:
F6000914 C305
B6002800 0000
Code:
06002ED0 0009 (JP Version)
06002EB0 0009 (US & PAL Versions)
Also I can confirm 100% that saga saves the game after completing each disc so just loading the next disc from a cold boot and loading the save will work.
Now its just a way of still being able to use the above codes!
Thanks for that, that may just come in handy for Cyber Warrior X develop this further, though he has plans to re add codes and memcard features
Looking rapidly on this, it seems 0009 is NOP (On dreamcast it's 0900, endianness?). So it'd be nice to find out what 06002E(B or D)0 does, to patch the disc itself so it boots on PseudoSaturn.
I 0600 2EB0/2ED0 looks like a ram address to me (11952, 11984). Address 11936 (2EA0) is the saturn "game's own IP" according to someone on a forum: http://segaxtreme.net/forum/showthread.php?tid=3682 I guess he means the main executable, as the dreamcast-like ip.bin is loaded at 06002000 afaik. [edit] That was a confusion, see my next post[/edit]
So changing the WORDs at offset 0010 (16) in the executable for NTSC-U/PAL to 0009 or offset 0030 (48) for the NTSC-J version...
Maybe it's 0900 that has to be written as the cd-rom endianness is different than the CPU, as on dreamcast?
What I'd try: Open a NTSC-U/PAL (or NTSC-J) PDSaga iso, find the executable, patch at offset 16 (or 48) with 0090. If it doesn't works, patch with 0900.
I 0600 2EB0/2ED0 looks like a ram address to me (11952, 11984). Address 11936 (2EA0) is the saturn "game's own IP" according to someone on a forum: http://segaxtreme.net/forum/showthread.php?tid=3682 I guess he means the main executable, as the dreamcast-like ip.bin is loaded at 06002000 afaik. [edit] That was a confusion, see my next post[/edit]
So changing the WORDs at offset 0010 (16) in the executable for NTSC-U/PAL to 0009 or offset 0030 (48) for the NTSC-J version...
Maybe it's 0900 that has to be written as the cd-rom endianness is different than the CPU, as on dreamcast?
What I'd try: Open a NTSC-U/PAL (or NTSC-J) PDSaga iso, find the executable, patch at offset 16 (or 48) with 0090. If it doesn't works, patch with 0900.
For a code that's always on you should be able to patch the executable/program file if you work out where in memory the program file is loaded and work out the offset.


Will your code correctly flash a 16bit chip instead of the (2) 8bit chips used on these carts?
I'll try fixing PDSaga on the weekend then. I got a modchip, but also an AR and a fixed iso is better than codes imo. Thanks for the confirmation Cyber..
I was somehow confused as I had in mind that the ip.bin is 16 sectors long but I confused ram address with lba a bit, so I though 2eb0 was outside the ip.bin. Silly me! Doesn't help that by great coincidence, 5eb0 is the start lba of dreamcast games second sessions (swapped endianness) and I'm more used to those.
I was somehow confused as I had in mind that the ip.bin is 16 sectors long but I confused ram address with lba a bit, so I though 2eb0 was outside the ip.bin. Silly me! Doesn't help that by great coincidence, 5eb0 is the start lba of dreamcast games second sessions (swapped endianness) and I'm more used to those.
Would love to claim I made that but it wasn't me

This patches a lot more than the code did
EDIT don't think that works....
EDIT AGAIN...
Oops let me try that again the iso needs to be M1-2048 not M1-2352
I'm burning this with patches now to test it but I am about to go out for a bit though so will report back later possibly just edit this
The minimal fix to make it work should be:
- ISO: Write 0x00 at offset 0xEA0
- BIN: Write 0x00 at offset 0xFE0 and rebuild sector field
To rebuild sector field: in CDMage, open BIN file, look for errors in sector 152 and select to rebuild sector field (works fine on wine)
Don't forget to change the header for the PseudoSaturn one if you plan on using it! This doesn't make the game region-free, but it's not needed with either an AR+modchip or PseudoSaturn.
I modified my BIN today, will test this weekend probably.
Comparison in format Offset Original Fixed for bin files; red is the fix itself, blue the rebuilt sector field:
$ cmp -l orig.bin fix.bin | gawk '{printf "%08X %02X %02X\n", $1-1, strtonum(0$2), strtonum(0$3)}'
00000FE0 D0 00
00001140 2B 47
00001141 F3 7D
00001143 9B 3F
0000118E FB A1
00001196 A1 15
00001197 2A A5
00001199 9C 6D
000011E4 E7 6D
000011EC 49 91
000011ED FD FC
000011EF 1D 48
0000120F DE 67
00001210 60 79
00001211 56 31
00001212 FA 92
00001213 6D CC
00001214 BA 01
00001215 61 1E
0000121A 1D 0B
0000121C 92 4E
00001243 F5 E8
00001244 37 92
00001245 0E 16
00001246 7C A0
00001247 3D 46
00001248 0C 6F
00001249 5D 23
0000124E 07 4B
00001250 0F 59
- ISO: Write 0x00 at offset 0xEA0
- BIN: Write 0x00 at offset 0xFE0 and rebuild sector field
To rebuild sector field: in CDMage, open BIN file, look for errors in sector 152 and select to rebuild sector field (works fine on wine)
Don't forget to change the header for the PseudoSaturn one if you plan on using it! This doesn't make the game region-free, but it's not needed with either an AR+modchip or PseudoSaturn.
I modified my BIN today, will test this weekend probably.
Comparison in format Offset Original Fixed for bin files; red is the fix itself, blue the rebuilt sector field:
$ cmp -l orig.bin fix.bin | gawk '{printf "%08X %02X %02X\n", $1-1, strtonum(0$2), strtonum(0$3)}'
00000FE0 D0 00
00001140 2B 47
00001141 F3 7D
00001143 9B 3F
0000118E FB A1
00001196 A1 15
00001197 2A A5
00001199 9C 6D
000011E4 E7 6D
000011EC 49 91
000011ED FD FC
000011EF 1D 48
0000120F DE 67
00001210 60 79
00001211 56 31
00001212 FA 92
00001213 6D CC
00001214 BA 01
00001215 61 1E
0000121A 1D 0B
0000121C 92 4E
00001243 F5 E8
00001244 37 92
00001245 0E 16
00001246 7C A0
00001247 3D 46
00001248 0C 6F
00001249 5D 23
0000124E 07 4B
00001250 0F 59
Even after patching this game still fails after the FMV cuts scenes gave a name after the few scenes and FMV there is goes to a black screen
I don't have a comms port so can't give much more detail than that, but I have a thought that it may be failing on a second Saturn exec file as I noticed that homebrew discs also have problems launching a second saturn exec file that is not the exec it booted from
Too tired to even look into that though so may do tomorrow if I get time and if -=FamilyGuy=- doesn't get there first (as I have possibly stated I am not a coder or anything like that, but I don't need to be to understand at least a bit of what needs to be changed, that and I did not make the codes to crack this to start with)
I don't have a comms port so can't give much more detail than that, but I have a thought that it may be failing on a second Saturn exec file as I noticed that homebrew discs also have problems launching a second saturn exec file that is not the exec it booted from
Too tired to even look into that though so may do tomorrow if I get time and if -=FamilyGuy=- doesn't get there first (as I have possibly stated I am not a coder or anything like that, but I don't need to be to understand at least a bit of what needs to be changed, that and I did not make the codes to crack this to start with)
Original thread: https://assemblergames.com/threads/saturn-proof-of-concept-bootloader-pseudo-saturn.52526/