diff options
author | Bad Diode <bd@badd10de.dev> | 2023-08-30 20:31:08 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2023-08-30 20:31:08 +0200 |
commit | 874ae39b6074da2778b72bcbaf6c7c7ef19aa233 (patch) | |
tree | 5ed5989ac78df0fea75c88c0b63f9a1a5ead6f53 /src/uxn.h | |
parent | be57c62f4633623005b5ac463ce7f65e8761d9bd (diff) | |
download | uxngba-874ae39b6074da2778b72bcbaf6c7c7ef19aa233.tar.gz uxngba-874ae39b6074da2778b72bcbaf6c7c7ef19aa233.zip |
Remove previous uxn core
Diffstat (limited to 'src/uxn.h')
-rw-r--r-- | src/uxn.h | 37 |
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 | /* | ||
4 | Copyright (c) 2021 Devine Lu Linvega | ||
5 | |||
6 | Permission to use, copy, modify, and distribute this software for any | ||
7 | purpose with or without fee is hereby granted, provided that the above | ||
8 | copyright notice and this permission notice appear in all copies. | ||
9 | |||
10 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | WITH REGARD TO THIS SOFTWARE. | ||
12 | */ | ||
13 | |||
14 | #define PAGE_PROGRAM 0x0100 | ||
15 | |||
16 | /* clang-format on */ | ||
17 | |||
18 | typedef struct { | ||
19 | u8 dat[255], ptr; | ||
20 | } Stack; | ||
21 | |||
22 | typedef 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 | |||
29 | typedef u8 Dei(Uxn *u, u8 addr); | ||
30 | typedef void Deo(Uxn *u, u8 addr, u8 value); | ||
31 | |||
32 | u8 uxn_dei(Uxn *u, u8 addr); | ||
33 | void uxn_deo(Uxn *u, u8 addr); | ||
34 | int uxn_halt(Uxn *u, u8 instr, u8 err, u16 addr); | ||
35 | int uxn_boot(Uxn *u, u8 *ram, Dei *dei, Deo *deo); | ||
36 | int uxn_eval(Uxn *u, u16 pc); | ||
37 | #endif // UXNGBA_UXN_H | ||