Removed unused deo param

This commit is contained in:
Devine Lu Linvega 2023-03-03 20:37:43 -08:00
parent 8f979ec0fe
commit 4cacc0d26b
4 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ WITH REGARD TO THIS SOFTWARE.
#define PUT2(o, v) { tmp = (v); s->dat[s->ptr - o - 2] = tmp >> 8; s->dat[s->ptr - o - 1] = tmp; }
#define PUSH(stack, v) { stack->dat[stack->ptr++] = (v); }
#define PUSH2(stack, v) { tmp = (v); stack->dat[stack->ptr] = (v) >> 8; stack->dat[stack->ptr + 1] = (v); stack->ptr += 2; }
#define SEND(a, b) { u->dev[a] = b; if((callbacks[(a) >> 4] >> ((a) & 0xf)) & 0x1) u->deo(u, a, b); }
#define SEND(a, b) { u->dev[a] = b; if((callbacks[(a) >> 4] >> ((a) & 0xf)) & 0x1) u->deo(u, a); }
static
Uint16 callbacks[] = {

View File

@ -32,11 +32,11 @@ typedef struct Uxn {
Uint8 *ram, *dev;
Stack *wst, *rst;
Uint8 (*dei)(struct Uxn *u, Uint8 addr);
void (*deo)(struct Uxn *u, Uint8 addr, Uint8 value);
void (*deo)(struct Uxn *u, Uint8 addr);
} Uxn;
typedef Uint8 Dei(Uxn *u, Uint8 addr);
typedef void Deo(Uxn *u, Uint8 addr, Uint8 value);
typedef void Deo(Uxn *u, Uint8 addr);
int uxn_halt(Uxn *u, Uint8 instr, Uint8 err, Uint16 addr);
int uxn_boot(Uxn *u, Uint8 *ram, Dei *dei, Deo *deo);

View File

@ -60,7 +60,7 @@ emu_dei(Uxn *u, Uint8 addr)
}
static void
emu_deo(Uxn *u, Uint8 addr, Uint8 v)
emu_deo(Uxn *u, Uint8 addr)
{
Uint8 p = addr & 0x0f, d = addr & 0xf0;
switch(d) {

View File

@ -126,7 +126,7 @@ emu_dei(Uxn *u, Uint8 addr)
}
static void
emu_deo(Uxn *u, Uint8 addr, Uint8 v)
emu_deo(Uxn *u, Uint8 addr)
{
Uint8 p = addr & 0x0f, d = addr & 0xf0;
switch(d) {