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

Just a question.. #7

Open
atssada opened this issue Jun 8, 2023 · 1 comment
Open

Just a question.. #7

atssada opened this issue Jun 8, 2023 · 1 comment

Comments

@atssada
Copy link

atssada commented Jun 8, 2023

First of all, thank you so much sharing! really appreciated.

I ordered 64KB ROM PCB, and prepared SST 39SF010A (1MB Flash)..

And I programmed 32K rom by TL866 programmer (all default), and programming itself was successful..

But MSX can not run the 32K rom..

Any advice for me to investigate further?

Any MSX program to flash rom file?

Best,
Kim.

@apoloval
Copy link
Owner

apoloval commented Jun 8, 2023

Perhaps you had written the ROM image to the wrong addresses.

The PCB is mapping the ROM memory in the 64KB address space of the cartridge slot as is. This means the address 0000h of the ROM chip corresponds to the address 0000h of the slot address.

The MSX, during BIOS boot, looks for a bootable program in every slot, but only on memory pages 1 (at 4000h) and 2 (at 8000h). If you had written your program on address 0000h, it will never boot.

Try to manipulate your ROM image such that it is extended to 64KB, so it contains:

  • 0000h to 3FFFh: fill with zeroes
  • 4000h to 7FFFh: your program
  • 8000h to FFFFh: fill with zeroes

For a program that expects to run on page 1. Or the following if it expects to run on page 2:

  • 0000h to 7FFFh: fill with zeroes
  • 8000h to BFFFh: your program
  • C000h to FFFFh: fill with zeroes

Then write that ROM image to the 39SF and try again.

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