z80 BankSwitch reset/initialize
Posted: Thu Apr 27, 2017 6:03 pm
Hi spritesmind users.
i have searched for some documentation about z80 bank register. Because i'm implementing my own z80 sound driver.
After reading this helpfull document https://emu-docs.org/Genesis/gen-hw.txt i found that i only have to write one by one the 9 high bits of my window direction to the register's bit 0 and Boom! the bank switch should be done. My doubt is about the use of this register. As i have not found how to reset this register, i dont know if the index of the bits that i 'm going to write will be in the right offset. Starting at bit 15
Is there a way to "reset" or "initialize" this register so i'll be sure that my first write will be interpreted as the 15th bit?
Does resetting the z80 resets this register?
I dont know if i explained myself.
I hope you can help me with this little trouble because i want to show you some of my work when it's sufficiently developed.
Thank you.
i have searched for some documentation about z80 bank register. Because i'm implementing my own z80 sound driver.
After reading this helpfull document https://emu-docs.org/Genesis/gen-hw.txt i found that i only have to write one by one the 9 high bits of my window direction to the register's bit 0 and Boom! the bank switch should be done. My doubt is about the use of this register. As i have not found how to reset this register, i dont know if the index of the bits that i 'm going to write will be in the right offset. Starting at bit 15
Is there a way to "reset" or "initialize" this register so i'll be sure that my first write will be interpreted as the 15th bit?
Does resetting the z80 resets this register?
I dont know if i explained myself.
I hope you can help me with this little trouble because i want to show you some of my work when it's sufficiently developed.
Thank you.