Initial commit
[pdp8.git] / sw / speed8 / pc / rk05.h
CommitLineData
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
14extern int rk05_write_sector(uint8_t drive, uint16_t disk_address, uint16_t mem_address);
15extern int rk05_read_sector(uint8_t drive, uint16_t disk_address, uint16_t mem_address);
16extern int rk05_status(uint16_t * status);
17extern int rk05_write_track(uint8_t drive, uint16_t track);
18extern int rk05_read_track(uint8_t drive, uint16_t track);
19extern int rk05_read_disk(uint8_t disk, uint16_t * target);
20extern int rk05_write_disk(uint8_t disk, uint16_t * target);
21
22
23extern void rk05_perror(uint16_t status);
24
25
26
27
28#endif