Emulating the Intel 8080 on a MOS 6502

Emulating older computers on modern, much faster systems, is very common nowadays โ€“ but how about emulating the Intel 8080 (1974) on a MOS 6502 system like the KIM-1 (1975)? The “8080 Simulator for the 6502” by Dann McCreary from 1978 does exactly that.

Why imitate one microprocessor with another? You probably purchased this 8080 simulator package to do one or more of the following:

  • Run existing 8080 software on your 6502
  • Write, test and debug your own 8080 software without having to purchase a complete 8080 based system
  • Learn something about the architecture and instruction set of the 8080 via hands-on experience

The emulator is extremely size-optimized and fits in less than 1 KB of RAM. This was done by compressing the 256-entry opcode space into 25 sections of similar instructions that could be handled by one generic function.

The four-page article “8080 Simulation with a 6502” (MICRO โ€“ The 6502 Journal, issue 16, September 1979) explains the motivation and design of the software in detail:

Dann McCreary: 8080 Simulation with a 6502 [1979]

And here is the original commented source code with usage instructions:

Dann McCreary: An 8080 Simulator for the 6502, KIM-1 Version [1978]

Thanks a lot to Dann McCreary, who provided scans of his original work, as well as additional insights:

I wrote this by hand, pencil and paper assembly (BTW, did you ever read Carl Helmer’s article about pencil and paper in one of the very early issues of BYTE magazine? ๐Ÿ˜‰ and much of the simulator was written as I rode the bus to and from work… ๐Ÿ˜‰

About the tools used to create this program:

Honestly, I don’t remember for certain… BUT… MORE THAN LIKELY, it is
a FAKE – i.e., I probably just text-edited a listing in “assembler
listing” format for the purpose of publishing the code and “looking
professional”… ๐Ÿ˜‰

CONSEQUENTLY, be on the lookout for typographical (and thus operational)
errors that could be “in there” …

The all-upper-case makes me think I printed this stuff out on an old
drum printer that I resurrected from the American Surplus Computer
company in Boston back in the ’70s… And there’s yet another story! ๐Ÿ™‚

The text editor may likely have been running on my Apple ][…. or maybe
“borrowed” from some company where I was working at the time?


Dann later ported the simulator to the Apple-][. The tape dump of the resulting product “Apple-80” can be found at brutaldeluxe.fr.

3 thoughts on “Emulating the Intel 8080 on a MOS 6502

  1. falken

    thanks, very nice ๐Ÿ™‚ I am just now dreaming about 6502 too – back in 1988 at high-school I wrote the same thing for Atari 800 XL using macroassembler Atmas-II, just with curiosity if/how it will work – mine was under 4kB binary with 2 per-opcode tables (pointers to opcode routines and PC-advance), so main loop was primitive and very fast, having source code done DRY using macros where possible; I had only cassete recorder for backups and source code tape is already gone, but the school contest thesis exists, so may be I will post it someday for memory of STILL COOL 6502 and golden times ๐Ÿ˜‰

  2. Pingback: Que tal vocรช emular alguรฉm do seu tamanho? | Retrocomputaria Plus

Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *