aboutsummaryrefslogtreecommitdiffstats
path: root/src/uxn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uxn.h')
-rw-r--r--src/uxn.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uxn.h b/src/uxn.h
index 6f01405..5d68528 100644
--- a/src/uxn.h
+++ b/src/uxn.h
@@ -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
19typedef struct { 21typedef struct {
20 u8 ptr, kptr, error; 22 u8 ptr, kptr, error;