- This is a quick and dirty hack that I wrote to calculate the values needed for the CBR, BBR and CBAR registers. These values are used by the Z180s Memory Management Unit (MMU) to map up to 3 areas in the Z80s 64k logical memory address space to the Z180s 1Mb physical address space.
Before you jump up and down saying I've made a typo above referring to the Z80, the Z180 is based on the Z80 core with a few extra instructions. So when we talk about the Z180s memory addressing, we can think of it as a Z80 in terms of it's logical memory addressing limit of 64k.
I would appreciate any feedback as to the accuracy of my calculations.
|