Hi Steve,
The init code for the Z180 is simple, just 3 commands. They are:
LD A,00000000b ; Turn off Z180 Refresh cycles
OUT0 (36H),A
LD A,11110000b ; Maximum wait states for Memroy and IO
OUT0 (32H),A
LD A,01000000b ; Reloc Z180 internal regs
OUT0 (3FH),A ; to 40H-7FH I/O addresses
The internal registers can be relocated to 4 I/O address blocks by loading A with other values:
LD A,01000000b ; Reloc Z180 internal regs to 40H-7FH
LD A,10000000b ; Reloc Z180 internal regs to 80H-BFH
LD A,11000000b ; Reloc Z180 internal regs to C0H-FFH
LD A,00000000b ; Reloc Z180 internal regs to 00H-3FH - default after reset
Tom