-
Notifications
You must be signed in to change notification settings - Fork 1
/
io.h
32 lines (28 loc) · 999 Bytes
/
io.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
#include "comm.h"
const uint16_t IO_LIMIT = 0x40;
extern io_read_func_t io_read[0x40];
extern io_write_func_t io_write[0x40];
void super_switch();
void init_io();
uint8_t IO_API ReadXX(uint8_t addr);
uint8_t IO_API Read06(uint8_t addr);
uint8_t IO_API Read3B(uint8_t addr);
uint8_t IO_API Read3F(uint8_t addr);
void IO_API WriteXX(uint8_t addr, uint8_t value);
//bank switch
void IO_API Write00(uint8_t addr, uint8_t value);
void IO_API Write05(uint8_t addr, uint8_t value);
void IO_API Write06(uint8_t addr, uint8_t value);
void IO_API Write08(uint8_t addr, uint8_t value);
// keypad matrix.
void IO_API Write09(uint8_t addr, uint8_t value);
// roabbs
void IO_API Write0A(uint8_t addr, uint8_t value);
// switch volume
void IO_API Write0D(uint8_t addr, uint8_t value);
// zp40 switch
void IO_API Write0F(uint8_t addr, uint8_t value);
void IO_API Write20(uint8_t addr, uint8_t value);
void IO_API Write23(uint8_t addr, uint8_t value);
// clock.
void IO_API Write3F(uint8_t addr, uint8_t value);