ivop / atari8080

Intel 8080 Emulator in 6502 assembly (prototyped in C)
BSD 2-Clause "Simplified" License
8 stars 0 forks source link

Small bug and a typo #3

Open iss000 opened 1 month ago

iss000 commented 1 month ago

I read quickly 8080.s and found:

Additionally I have a Q: Is it possible to run 8080.ovl on platform without memory banks (for instance Oric)?

ivop commented 1 month ago

Thanks for reporting! The weird thing is that it shows a bug in Mads, as the "MASTERspace128" code is assembled when "MASTER128" is defined.

Re running this on 64kB or less RAM, it could be possible if you were to adjust the main emulation loop, the mem_read/write macros and add extra checks to keep 8080 memory access within bounds. You'll need to assemble a new bios, bdos and ccp that run on a smaller memory system. Depending on the amount of TPA that's available to CP/M-65 you could maybe emulate a 16-24kB 8080 machine, although I expect it to be quite a bit slower than with banked memory, as you'll also need extra branching and code to handle out-of-bounds reads and writes.