diff options
Diffstat (limited to 'src/uxn.h')
-rw-r--r-- | src/uxn.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -15,6 +15,8 @@ WITH REGARD TO THIS SOFTWARE. | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #define PAGE_PROGRAM 0x0100 | 17 | #define PAGE_PROGRAM 0x0100 |
18 | #define DEVPEEK16(o, x) { (o) = (d->dat[(x)] << 8) + d->dat[(x) + 1]; } | ||
19 | #define DEVPOKE16(x, y) { d->dat[(x)] = (y) >> 8; d->dat[(x) + 1] = (y); } | ||
18 | 20 | ||
19 | typedef struct { | 21 | typedef struct { |
20 | u8 ptr, kptr, error; | 22 | u8 ptr, kptr, error; |