-
Notifications
You must be signed in to change notification settings - Fork 0
CPU
The computer uses a z80 CPU. This was one of the most popular CPUs in the late 70s, early 80s.
The z80 is an 8bit CPU, it uses an 8bit data bus and a 16bit address bus. This give it an address space of 64k. The CPU can talk to 65535 different address locations.
This class of old CPU doesn't have specialized I/O buses. All basic peripheral on the system will be accessed via DMA.
The CPU reset vector is located at address 0x0000. Upon reset, the CPU will start executing code from this memory location.
The stack is located where you want in the memory map. This should be done by setting the SP (stack pointer) register to the start of the stack.
The z80 stack grows downwards from this location, the SP register should always point to the top of the stack. Programs should take care of the number of push and pull made to the stack. (I have no idea how the CPU handles stack underflow).