commit 5045a4ca526d48c5a754bc7557ea9df5258907fb
parent 6e21f3aba06d44dd656c3346b05f65ec0540658b
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date: Sun, 1 Aug 2021 22:40:14 +0100
Fixed uxn-fast.c
Diffstat:
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/src/uxn-fast.c b/src/uxn-fast.c
@@ -4030,24 +4030,13 @@ error:
int
bootuxn(Uxn *u)
{
- size_t i;
+ unsigned int i;
char *cptr = (char *)u;
for(i = 0; i < sizeof(*u); i++)
cptr[i] = 0;
return 1;
}
-int
-loaduxn(Uxn *u, char *filepath)
-{
- FILE *f;
- if(!(f = fopen(filepath, "rb")))
- return 0;
- fread(u->ram.dat + PAGE_PROGRAM, sizeof(u->ram.dat) - PAGE_PROGRAM, 1, f);
- fprintf(stderr, "Uxn loaded[%s].\n", filepath);
- return 1;
-}
-
Device *
portuxn(Uxn *u, Uint8 id, char *name, void (*talkfn)(Device *d, Uint8 b0, Uint8 w))
{
@@ -4056,6 +4045,5 @@ portuxn(Uxn *u, Uint8 id, char *name, void (*talkfn)(Device *d, Uint8 b0, Uint8
d->u = u;
d->mem = u->ram.dat;
d->talk = talkfn;
- fprintf(stderr, "Device added #%02x: %s, at 0x%04x \n", id, name, d->addr);
return d;
}