- Disk Track and stepper motor phase limit adjustment so that all 40 tracks can be accessed

This commit is contained in:
Tamas Rudnai 2020-01-28 14:00:04 -08:00
parent ace3a8f68e
commit cea4eed922
2 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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 ) ) {