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

Feature request: import raw data into emulated memory #141

Open
equin0x80 opened this issue Nov 10, 2024 · 3 comments
Open

Feature request: import raw data into emulated memory #141

equin0x80 opened this issue Nov 10, 2024 · 3 comments

Comments

@equin0x80
Copy link

equin0x80 commented Nov 10, 2024

Currently BeebEm can only open "native" BBC file formats, such as tapes, disks, and ROM cartridges.

It would be nice to have another option on the File menu to load raw data (bytes) directly into the emulated BBC memory. This could be useful for cross-platform development, and other cases, e.g. importing graphics developed in a PC-based tool, or text articles for a diskzine. It would be necessary to prompt the user for a start address in RAM.

@chrisn
Copy link
Collaborator

chrisn commented Nov 11, 2024

The file r debug command lets you do this, but it involves opening the Debug window,

@equin0x80
Copy link
Author

equin0x80 commented Nov 12, 2024

Correct. The feature already exists (this should make it easy) but typical users won't see it. There's a case for saying "anyone who wants to import data is already a nerd, and should already know about the debugger" -- but, hey, I have a moderately strong 8-bit background, and I had no idea, and it isn't particularly obvious in the documentation. (To take another example, the ZX Spectrum emulator "Spectaculator" allows opening any file to any address, without touching the debugger -- although it does also have a hi-quality debugger.)

@chrisn
Copy link
Collaborator

chrisn commented Nov 12, 2024

I just looked at how the debug feature is implemented. There's address wraparound, which I'm not sure should be there. If you load a file that goes above address 0xFFFF, it continues writing from address 0x0000, up to a max of 64kbytes.

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