Fixed the "has drive selection" array in floppy/fdc.c so the SCAN LOW OR EQUAL and SCAN HIGH OR EQUAL commands are at the correct position, reduced it to 32 entries (maximum number of commands) out of 256, and changed it to uint8_t so it takes even less memory.

This commit is contained in:
OBattler
2020-06-21 01:08:05 +02:00
parent d11e8265de
commit c6d39f81c3

View File

@@ -41,7 +41,7 @@
extern uint64_t motoron[FDD_NUM]; extern uint64_t motoron[FDD_NUM];
const int command_has_drivesel[256] = { const uint8_t command_has_drivesel[32] = {
0, 0, 0, 0,
1, /* READ TRACK */ 1, /* READ TRACK */
0, 0,
@@ -61,24 +61,11 @@ const int command_has_drivesel[256] = {
1, /* SCAN EQUAL */ 1, /* SCAN EQUAL */
0, 0, 0, 0, 0, 0, 0, 0,
1, /* VERIFY */ 1, /* VERIFY */
0, 0, 0, 0, 0,
1, /* SCAN LOW OR EQUAL */ 1, /* SCAN LOW OR EQUAL */
0, 0, 0, 0, 0, 0,
1, /* SCAN HIGH OR EQUAL */ 1, /* SCAN HIGH OR EQUAL */
0, 0, 0, 0
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}; };