C64 ROM Loader
Goog
Posts: 65
Hi everyone,
Sorry it's·taking so long·with my C64 emulator - I've been waiting on parts and trying to get things working.
I am posting my ROM loader here in its own topic because it seems to work for the most part, but I am having trouble in one area.· Any input would be appreciated.
The program basically loads a binary file at compile time and copies it to an EEPROM on my demo board (rev. c).· My EEPROM is a Ramtron chip, connected to pins 5 and 6.· The program seems to write to it just fine.· Reading back the values works fine, too.
The problem is that when I try to write to any address, the values written seem to start at address $0001 on up again - overwriting anything that was already there.· For instance, if I copy the ROM file to $A000-$AFFF and then try to write data to $E000-$EFFF, the writes seem to go to where I wrote $A000.· What I think is happening is that the writes are just going·to $0000, no matter what address I specify.
Any ideas?
Thanks,
Goog
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Doing my part to keep the Commodore 64 alive!
http://www.commodorestuff.com
Sorry it's·taking so long·with my C64 emulator - I've been waiting on parts and trying to get things working.
I am posting my ROM loader here in its own topic because it seems to work for the most part, but I am having trouble in one area.· Any input would be appreciated.
The program basically loads a binary file at compile time and copies it to an EEPROM on my demo board (rev. c).· My EEPROM is a Ramtron chip, connected to pins 5 and 6.· The program seems to write to it just fine.· Reading back the values works fine, too.
The problem is that when I try to write to any address, the values written seem to start at address $0001 on up again - overwriting anything that was already there.· For instance, if I copy the ROM file to $A000-$AFFF and then try to write data to $E000-$EFFF, the writes seem to go to where I wrote $A000.· What I think is happening is that the writes are just going·to $0000, no matter what address I specify.
Any ideas?
Thanks,
Goog
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Doing my part to keep the Commodore 64 alive!
http://www.commodorestuff.com
Comments
See spec sheet here:
http://www.ramtron.com/lib/literature/datasheets/FM24CL64ds_r3.1.pdf
Goog
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Doing my part to keep the Commodore 64 alive!
http://www.commodorestuff.com
·
-Phil
I guess I'll have to order·two of their·FM25L256 - 256Kb and link them together to form 64KB·- does that sound right?
http://www.ramtron.com/doc/Products/Nonvolatile/Detail.asp?ID=31&gr=5
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Doing my part to keep the Commodore 64 alive!
http://www.commodorestuff.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Doing my part to keep the Commodore 64 alive!
http://www.commodorestuff.com
·
Glad to see the issue has been solved! While you are waiting for the new chips, you can at least get the code running with a 1k or so block to test
James
By the way, anyone could use this program to load their EEPROM with any file (within max space of the chip) from their PC - not just C64 ROM files.
I ordered my chips yesterday. I can hardly wait!!!
Goog
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Doing my part to keep the Commodore 64 alive!
http://www.commodorestuff.com
·
Good stuff - when I've got more time - aka next month i'll be looking at your emulator in more detail! I always loved the C64.... I'd like to make a min one I can play with, i.e. small lcd-tv, mmc card etc....
James