diff --git a/A2Mac/Apple2_mmio.h b/A2Mac/Apple2_mmio.h index f3dde28..16163a7 100644 --- a/A2Mac/Apple2_mmio.h +++ b/A2Mac/Apple2_mmio.h @@ -166,8 +166,11 @@ typedef union address16_u { return 0; +static const int minDiskTrackNum = 0; +static const int maxDiskTrackNum = 39; +static const int minDiskPhaseStates = 8; // 4 quarters * 2 because of two neighbouring magnets can be activated at the same time which gets you a half quarter movement static const int minDiskPhaseNum = 0; -static const int maxDiskPhaseNum = 79; +static const int maxDiskPhaseNum = minDiskPhaseStates * maxDiskTrackNum; struct phase_t { uint8_t lastMagnet : 4; diff --git a/A2Mac/instructions/6502_instr_load_store.h b/A2Mac/instructions/6502_instr_load_store.h index 3c92d96..0ec45ca 100644 --- a/A2Mac/instructions/6502_instr_load_store.h +++ b/A2Mac/instructions/6502_instr_load_store.h @@ -104,7 +104,7 @@ INLINE void STR( uint8_t * dst, uint8_t src ) { // } // else if ( ( addr >= 0xC000 ) && ( addr < 0xD000 ) ) { -// printf("mmio write:[%04X] = %02X\n", addr, src); + // printf("mmio write:[%04X] = %02X\n", addr, src); } // Need to protect ROM!!! else if ( ( addr >= 0xE000 ) && ( addr < 0xF000 ) ) {