Typedef for Dei/Deo

This commit is contained in:
Devine Lu Linvega 2022-06-13 12:06:16 -07:00
parent 507a4b838c
commit 1d01e74635
1 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,9 @@ typedef struct Uxn {
void (*deo)(struct Uxn *u, Uint8 addr, Uint8 value); void (*deo)(struct Uxn *u, Uint8 addr, Uint8 value);
} Uxn; } Uxn;
int uxn_boot(Uxn *u, Uint8 *ram, Uint8 (*dei)(struct Uxn *, Uint8), void (*deo)(struct Uxn *, Uint8, Uint8)); typedef Uint8 Dei(Uxn *u, Uint8 addr);
typedef void Deo(Uxn *u, Uint8 addr, Uint8 value);
int uxn_boot(Uxn *u, Uint8 *ram, Dei *dei, Deo *deo);
int uxn_eval(Uxn *u, Uint16 pc); int uxn_eval(Uxn *u, Uint16 pc);
int uxn_halt(Uxn *u, Uint8 instr, Uint8 err, Uint16 addr); int uxn_halt(Uxn *u, Uint8 instr, Uint8 err, Uint16 addr);