Home | Forums | What's new | Resources | |
Boot file location identification |
paul_met - Jun 4, 2020 |
1 | 2 | Next> |
TrekkiesUnite118 | Jun 4, 2020 | |||
Couldn't you just name your new file "0" and name the old file '1" or something and then have your new code load in "1" when it's done? |
slinga | Jun 4, 2020 | |||||
That address is part of the CD Block registers (CDBlock - Yabause...). I'm no expert, but writing to that region is how the SH-2 issues commands to the CD Block. |
vbt | Jun 4, 2020 | |||
saturn reads the first file of the CD and loads it at the address defined in the IP.BIN |
paul_met | Jun 4, 2020 | |||||
First file by name? So how is the LBA of this file calculated? |
antime | Jun 5, 2020 | |||||
It is read from the file system.... |
paul_met | Jun 5, 2020 | |||||
I'm more interested in how all this code looks in SH2 assembler. |
paul_met | Jun 5, 2020 | |||||
I know that. I am interested in how to make a choice between two files. For example, if T=0, then reading fist file in the list ("0.bin"), otherwise go to the second file in the list ("1.bin"). In other words, I need an algorithm of seeking to the next file in the list (without searching for the file by name if possible). |
paul_met | Jun 5, 2020 | |||||
Not a very convenient solution. The file size will double and the time it takes to load it into memory will also increase. In addition, there may not be enough memory for such file. |
paul_met | Jun 6, 2020 | |||
Well, I solved the problem of selecting executable files at startup. I used a custom bootloader, the code of which I borrowed from another game, modifying it to fit my needs. This bootloader is suitable for hacks, suggesting the use of a extended RAM cartridge to speed up the loading of the game. When such a cartridge is connected, the bootloader detects it (the "SEGA" logo turns red) and caches data to the cartridge RAM. ----------------------------------------------------------------------
|
Waterfuell | Jun 6, 2020 | |||
Great job, can be done something similar for kof95 and ultraman?? Load cartridge rom into ram from a cd file. |
paul_met | Jun 6, 2020 | |||||
I did not quite understand the question. Both of these games use a ROM cartridge. Two cartridges cannot be used simultaneously (RAM and ROM). |
TrekkiesUnite118 | Jun 6, 2020 | |||||
He means basically dump the ROM, put it on the CD, and then have this load it into the 4MB RAM cartridge. I honestly don't know if that would work as I'm not sure how big the ROM files are for those two games. I'd rather see if this could improve the Mortal Kombat games on the Saturn. |
paul_met | Jun 6, 2020 | |||||||||
The ROM size for KoF 95 is 2 MB. But I don’t understand why to transfer data to a RAM cartridge from a ROM cartridge? To play on a modified original hardware without a ROM cartridge?
I think the RAM cartridge won't help. Files with data of fighters from MKT take up quite a lot of space (300-500 KB each file) and all of them will not fit on the cartridge. If we are talking about the problem of loading characters during the transformation of Shang Tsung of course. |
Waterfuell | Jun 6, 2020 | |||||||||
Exactly, just that.
Imagine you wanna play KoF 95 in real hardware, but you don't have original cartridge. If posible, you can put rom image file into CD and load to ram cartridge. PD:Sorry for my english. |
paul_met | Jun 6, 2020 | |||||
I do not know how the identification of the ROM cartridge occurs. In addition, data from the ROM cartridge is present on the disk, but it is divided into several files and a header. |
1 | 2 | Next> |