diff options
Diffstat (limited to 'src/uxn.h')
-rw-r--r-- | src/uxn.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -13,12 +13,6 @@ WITH REGARD TO THIS SOFTWARE. | |||
13 | 13 | ||
14 | #define PAGE_PROGRAM 0x0100 | 14 | #define PAGE_PROGRAM 0x0100 |
15 | 15 | ||
16 | /* clang-format off */ | ||
17 | |||
18 | #define GETVEC(d) ((d)[0] << 8 | (d)[1]) | ||
19 | #define POKDEV(x, y) { d[(x)] = (y) >> 8; d[(x) + 1] = (y); } | ||
20 | #define PEKDEV(o, x) { (o) = (d[(x)] << 8) + d[(x) + 1]; } | ||
21 | |||
22 | /* clang-format on */ | 16 | /* clang-format on */ |
23 | 17 | ||
24 | typedef struct { | 18 | typedef struct { |
@@ -35,6 +29,8 @@ typedef struct Uxn { | |||
35 | typedef u8 Dei(Uxn *u, u8 addr); | 29 | typedef u8 Dei(Uxn *u, u8 addr); |
36 | typedef void Deo(Uxn *u, u8 addr, u8 value); | 30 | typedef void Deo(Uxn *u, u8 addr, u8 value); |
37 | 31 | ||
32 | u8 uxn_dei(Uxn *u, u8 addr); | ||
33 | void uxn_deo(Uxn *u, u8 addr); | ||
38 | int uxn_halt(Uxn *u, u8 instr, u8 err, u16 addr); | 34 | int uxn_halt(Uxn *u, u8 instr, u8 err, u16 addr); |
39 | int uxn_boot(Uxn *u, u8 *ram, Dei *dei, Deo *deo); | 35 | int uxn_boot(Uxn *u, u8 *ram, Dei *dei, Deo *deo); |
40 | int uxn_eval(Uxn *u, u16 pc); | 36 | int uxn_eval(Uxn *u, u16 pc); |