Commit | Line | Data |
---|---|---|
a6a4e5d4 PH |
1 | |
2 | ||
3 | #ifndef RK05_H | |
4 | #define RK05_H | |
5 | #include <stdint.h> | |
6 | ||
7 | //#define RK05_CYLINDERS 203 | |
8 | #define RK05_CYLINDERS 203 | |
9 | #define RK05_DISKSIZE (RK05_CYLINDERS*2*16*256) | |
10 | #define RK05_TRACKS (RK05_CYLINDERS*2) | |
11 | ||
12 | #define RK05_STATUS_OK (04000) | |
13 | ||
14 | extern int rk05_write_sector(uint8_t drive, uint16_t disk_address, uint16_t mem_address); | |
15 | extern int rk05_read_sector(uint8_t drive, uint16_t disk_address, uint16_t mem_address); | |
16 | extern int rk05_status(uint16_t * status); | |
17 | extern int rk05_write_track(uint8_t drive, uint16_t track); | |
18 | extern int rk05_read_track(uint8_t drive, uint16_t track); | |
19 | extern int rk05_read_disk(uint8_t disk, uint16_t * target); | |
20 | extern int rk05_write_disk(uint8_t disk, uint16_t * target); | |
21 | ||
22 | ||
23 | extern void rk05_perror(uint16_t status); | |
24 | ||
25 | ||
26 | ||
27 | ||
28 | #endif |