0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-04 21:35:04 +00:00

Removed device page from addressable memory

This commit is contained in:
Devine Lu Linvega 2023-03-12 14:56:44 -07:00
parent bdd071cab4
commit 6c068b7774
2 changed files with 3 additions and 4 deletions

View file

@ -128,13 +128,12 @@ uxn_eval(Uxn *u, Uint16 pc)
int
uxn_boot(Uxn *u, Uint8 *ram)
{
Uint32 i;
int i;
char *cptr = (char *)u;
for(i = 0; i < sizeof(*u); i++)
cptr[i] = 0x00;
cptr[i] = 0;
u->wst = (Stack *)(ram + 0xf0000);
u->rst = (Stack *)(ram + 0xf0100);
u->dev = (Uint8 *)(ram + 0xf0200);
u->ram = ram;
return 1;
}

View file

@ -29,7 +29,7 @@ typedef struct {
} Stack;
typedef struct Uxn {
Uint8 *ram, *dev;
Uint8 *ram, dev[256];
Stack *wst, *rst;
Uint8 (*dei)(struct Uxn *u, Uint8 addr);
void (*deo)(struct Uxn *u, Uint8 addr);