mirror of
https://github.com/trudnai/Steve2.git
synced 2024-05-29 03:41:28 +00:00
- Disk Track and stepper motor phase limit adjustment so that all 40 tracks can be accessed
This commit is contained in:
parent
ace3a8f68e
commit
cea4eed922
|
@ -166,8 +166,11 @@ typedef union address16_u {
|
||||||
return 0;
|
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 minDiskPhaseNum = 0;
|
||||||
static const int maxDiskPhaseNum = 79;
|
static const int maxDiskPhaseNum = minDiskPhaseStates * maxDiskTrackNum;
|
||||||
|
|
||||||
struct phase_t {
|
struct phase_t {
|
||||||
uint8_t lastMagnet : 4;
|
uint8_t lastMagnet : 4;
|
||||||
|
|
|
@ -104,7 +104,7 @@ INLINE void STR( uint8_t * dst, uint8_t src ) {
|
||||||
// }
|
// }
|
||||||
// else
|
// else
|
||||||
if ( ( addr >= 0xC000 ) && ( addr < 0xD000 ) ) {
|
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!!!
|
// Need to protect ROM!!!
|
||||||
else if ( ( addr >= 0xE000 ) && ( addr < 0xF000 ) ) {
|
else if ( ( addr >= 0xE000 ) && ( addr < 0xF000 ) ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user