mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-12 10:30:23 +00:00
21 lines
302 B
C
21 lines
302 B
C
|
#ifndef _BUS_H_
|
||
|
#define _BUS_H_
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#define RK65C02_BUS_SIZE 64*1024
|
||
|
|
||
|
struct bus_tag {
|
||
|
uint8_t *space;
|
||
|
};
|
||
|
|
||
|
typedef struct bus_tag bus_t;
|
||
|
|
||
|
uint8_t bus_read_1(bus_t *, uint16_t);
|
||
|
void bus_write_1(bus_t *, uint16_t, uint8_t);
|
||
|
bus_t bus_init();
|
||
|
void bus_finish();
|
||
|
|
||
|
#endif /* _BUS_H_ */
|
||
|
|