aboutsummaryrefslogtreecommitdiffstats
path: root/src/uxn.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-08-30 20:31:08 +0200
committerBad Diode <bd@badd10de.dev>2023-08-30 20:31:08 +0200
commit874ae39b6074da2778b72bcbaf6c7c7ef19aa233 (patch)
tree5ed5989ac78df0fea75c88c0b63f9a1a5ead6f53 /src/uxn.h
parentbe57c62f4633623005b5ac463ce7f65e8761d9bd (diff)
downloaduxngba-874ae39b6074da2778b72bcbaf6c7c7ef19aa233.tar.gz
uxngba-874ae39b6074da2778b72bcbaf6c7c7ef19aa233.zip
Remove previous uxn core
Diffstat (limited to 'src/uxn.h')
-rw-r--r--src/uxn.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/uxn.h b/src/uxn.h
deleted file mode 100644
index 04aba84..0000000
--- a/src/uxn.h
+++ /dev/null
@@ -1,37 +0,0 @@
1#ifndef UXNGBA_UXN_H
2#define UXNGBA_UXN_H
3/*
4Copyright (c) 2021 Devine Lu Linvega
5
6Permission to use, copy, modify, and distribute this software for any
7purpose with or without fee is hereby granted, provided that the above
8copyright notice and this permission notice appear in all copies.
9
10THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11WITH REGARD TO THIS SOFTWARE.
12*/
13
14#define PAGE_PROGRAM 0x0100
15
16/* clang-format on */
17
18typedef struct {
19 u8 dat[255], ptr;
20} Stack;
21
22typedef struct Uxn {
23 u8 *ram, *dev;
24 Stack *wst, *rst;
25 u8 (*dei)(struct Uxn *u, u8 addr);
26 void (*deo)(struct Uxn *u, u8 addr, u8 value);
27} Uxn;
28
29typedef u8 Dei(Uxn *u, u8 addr);
30typedef void Deo(Uxn *u, u8 addr, u8 value);
31
32u8 uxn_dei(Uxn *u, u8 addr);
33void uxn_deo(Uxn *u, u8 addr);
34int uxn_halt(Uxn *u, u8 instr, u8 err, u16 addr);
35int uxn_boot(Uxn *u, u8 *ram, Dei *dei, Deo *deo);
36int uxn_eval(Uxn *u, u16 pc);
37#endif // UXNGBA_UXN_H