1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Doubles up on register mirroring. Will do for now. More to come.

This commit is contained in:
Thomas Harte 2016-06-20 07:27:38 -04:00
parent b6dd38dad3
commit d4b9ff0ca4

View File

@ -31,7 +31,7 @@ template <class T> class MOS6532 {
inline void set_register(int address, uint8_t value)
{
const uint8_t decodedAddress = address & 0x0f;
const uint8_t decodedAddress = address & 0x07;
switch(decodedAddress) {
case 0x00:
case 0x02:
@ -57,7 +57,7 @@ template <class T> class MOS6532 {
inline uint8_t get_register(int address)
{
const uint8_t decodedAddress = address & 0xf;
const uint8_t decodedAddress = address & 0x7;
switch(decodedAddress) {
case 0x00:
case 0x02: