Today, I published the microcode source in the hackaday file section, as microcode 261106.zip.
The microcode actually does a lot more than implementing a processor. Some of it's other functions are:
Startup:
- system reset (keyword "R E S E T" )
- initialize tables (keyword tbl1)
- copy Z80 boot code from microcode flash to RAM at 0xE000 (keyword DATA, prepared by function "init_values")
- init system variables (keyword launch)
- transfer control to bootcode at 0xE000 (end of launch)
Peripherals:
- process timer interrupt every scanline
- keyboard and mouse communication
- video display driver
- sound driver
- rtc real time clock
Specialized processing:
- Blitter
- Sound generator
Peripherals are mostly serviced in an interrupt. In every CPU instruction, the interrupt request signal is checked. If it is active (indicating the beginning of a new scanline), the Z80 jumps to microcode 0x80 in page 1. This starts a sequence that will first poll the keyboard, then the mouse, output a sound sample, and it will then increment the pointer to the frame table. Then it jumps to the actioncode in the frame table, where the pointer points. The actioncode tells Isetta what to do on this scanline (display video, do vertical sync, and if it is a blank line it will go back to the CPU immediately).
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.