stm6502 -- a 6502 simulator for the STM32F4Discovery board
Posted: Mon May 07, 2012 10:53 am
STMicroelectronics have a cheap evaluation board out called the STM32F4-Discovery (http://www.st.com/internet/evalboard/product/252419.jsp), and the specs are quite decent: 168MHz ARM/Thumb2 CPU, 1 MB of Flash, 192 kB of RAM, 80 GPIO pins, with all the capabilities you would wish for: multiple UARTS, USB, DAC Audio, external address/memory bus, ....for under $20.
Of course, it's bandwagon'ing after the hobbyist boards like the Arduino, of which a lot of cpu simulation projects have already been done. However, unlike the ATMega-based projects, the Disco comes with enough on-chip static RAM to make 8-bit cpu simulations a no-brainer, with their 64kB address space catered for easy.
Anyway, I've posted my own project online, at https://github.com/cjbaird/stm6502 .. This is a NMOS 6502 simulator with only basic character I/O for the moment (although through the 115200bps serial port on the Disco). The effective emulation speed is between 5 and 21 MHz.
It can run the famous Wozniak 256 byte Apple 1 monitor, so I'm fairly confident of the simulator's correctness
...but fortunately I've made Jim Butterfield's SUPERMON the primary system monitor. Lee Davidson's EhBASIC, and FIG-FORTH are also included.
As for my motivations for this project: it's not to emulate any particular hardware, but to provide a 'generic' 6502 system for testing code on.
Of course, it's bandwagon'ing after the hobbyist boards like the Arduino, of which a lot of cpu simulation projects have already been done. However, unlike the ATMega-based projects, the Disco comes with enough on-chip static RAM to make 8-bit cpu simulations a no-brainer, with their 64kB address space catered for easy.
Anyway, I've posted my own project online, at https://github.com/cjbaird/stm6502 .. This is a NMOS 6502 simulator with only basic character I/O for the moment (although through the 115200bps serial port on the Disco). The effective emulation speed is between 5 and 21 MHz.
It can run the famous Wozniak 256 byte Apple 1 monitor, so I'm fairly confident of the simulator's correctness
As for my motivations for this project: it's not to emulate any particular hardware, but to provide a 'generic' 6502 system for testing code on.