An Intel 8080 emulator core written in Lua.
Either the bit32
or BitOp module for bitwise operators.
This emulator core is modular, like the early microcomputers. It should be able to emulate most 8080-based computers, but you need to "wire it up" yourself, just like the old days.
See main.lua
for an example of how to use it in your own programs.
You can also look at these emulators that use this core:
- Moon Invaders (Space Invaders emulator)
- ALTAÏR (Altair 8800 emulator)
You can download one of the many Intel 8080 test suites and run them with the main.lua
script.
Currently, it passes these tests:
-
8080PRE.COM
: Preliminary test for 8080/8085 CPU Exerciser by Ian Bartholomew and Frank Cringles -
8080EXER.COM
: 8080/8085 CPU Exerciser by Ian Bartholomew and Frank Cringles -
TST8080.COM
: 8080/8085 CPU Diagnostic, version 1.0, by Microcosm Associates -
CPUTEST.COM
: 8080/Z80 CPU Diagnostic II, by SuperSoft Associates