forked from scarybeasts/beebjit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintel_fdc.h
32 lines (24 loc) · 1.03 KB
/
intel_fdc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef BEEBJIT_INTEL_FDC_H
#define BEEBJIT_INTEL_FDC_H
#include <stdint.h>
struct intel_fdc_struct;
struct bbc_options;
struct disc_drive_struct;
struct state_6502;
struct timing_struct;
struct intel_fdc_struct* intel_fdc_create(struct state_6502* p_state_6502,
struct timing_struct* p_timing,
struct bbc_options* p_options);
void intel_fdc_destroy(struct intel_fdc_struct* p_fdc);
/* Setup. */
void intel_fdc_set_drives(struct intel_fdc_struct* p_fdc,
struct disc_drive_struct* p_drive_0,
struct disc_drive_struct* p_drive_1);
void intel_fdc_power_on_reset(struct intel_fdc_struct* p_fdc);
void intel_fdc_break_reset(struct intel_fdc_struct* p_fdc);
/* Host hardware register I/O. */
uint8_t intel_fdc_read(struct intel_fdc_struct* p_fdc, uint16_t addr);
void intel_fdc_write(struct intel_fdc_struct* p_fdc,
uint16_t addr,
uint8_t val);
#endif /* BEEBJIT_INTEL_FDC_H */