Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steps required for a dumped PAL PIF to work with cen64 #7

Open
jchillerup opened this issue Jul 9, 2022 · 1 comment
Open

Steps required for a dumped PAL PIF to work with cen64 #7

jchillerup opened this issue Jul 9, 2022 · 1 comment

Comments

@jchillerup
Copy link

jchillerup commented Jul 9, 2022

I just want to state for others trying to dump their PAL PIF that I had to do some manual modifications to the dumped SRAM.

While it's true that the PIF ROM is 0x7c0 bytes long, just truncating it there won't give you the file cen64 is looking for - you need some tailing data to get to 0x800 bytes. There are two ways of getting there with the dump you have:

Option 1: Truncate at offset 0x7ff yielding a 0x800 bytes long binary. Then replace the 15 bytes starting at offset 0x7c0 with 0x00 bytes.

Option 2: Truncate up to and including byte 0x7bf yielding a 0x7c0 byte file which is the PIF ROM. Then append the following 64 bytes to get to a total of 0x800 bytes:

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 3F 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Doing either of the two should leave you with a file with SHA1 46cae59d31f9298b93f3380879454fcef54ee6cc which cen64 will accept as a proper PAL PIF ROM.

@hcs64
Copy link
Owner

hcs64 commented Jul 9, 2022

Thanks! If you want to submit a PR adding this to the readme I'd welcome it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants