summaryrefslogtreecommitdiff
path: root/src/hw/floppy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hw/floppy.c')
-rw-r--r--src/hw/floppy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hw/floppy.c b/src/hw/floppy.c
index 0479ac7..e54f1ba 100644
--- a/src/hw/floppy.c
+++ b/src/hw/floppy.c
@@ -21,6 +21,12 @@
#include "string.h" // memset
#include "util.h" // timer_calc
+#define PORT_FD_BASE 0x03f0
+#define PORT_FD_DOR 0x03f2
+#define PORT_FD_STATUS 0x03f4
+#define PORT_FD_DATA 0x03f5
+#define PORT_FD_DIR 0x03f7
+
#define FLOPPY_SIZE_CODE 0x02 // 512 byte sectors
#define FLOPPY_DATALEN 0xff // Not used - because size code is 0x02
#define FLOPPY_MOTOR_TICKS 37 // ~2 seconds