Fixed issue with boot
This commit is contained in:
parent
220c3676e5
commit
1dbe552f77
10
cli.c
10
cli.c
|
@ -72,28 +72,24 @@ echof(Uxn *c)
|
||||||
getflag(&c->status, FLAG_COND) != 0);
|
getflag(&c->status, FLAG_COND) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Uxn u;
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
Uxn u;
|
||||||
if(argc < 2)
|
if(argc < 2)
|
||||||
return error("Input", "Missing");
|
return error("Input", "Missing");
|
||||||
if(!bootuxn(&u))
|
if(!bootuxn(&u))
|
||||||
return error("Boot", "Failed");
|
return error("Boot", "Failed");
|
||||||
if(!loaduxn(&u, argv[1]))
|
if(!loaduxn(&u, argv[1]))
|
||||||
return error("Load", "Failed");
|
return error("Load", "Failed");
|
||||||
|
|
||||||
portuxn(&u, 0xfff0, 0xfff1, console_onread, console_onwrite);
|
portuxn(&u, 0xfff0, 0xfff1, console_onread, console_onwrite);
|
||||||
|
|
||||||
printf("VRESET\n");
|
|
||||||
evaluxn(&u, u.vreset);
|
evaluxn(&u, u.vreset);
|
||||||
printf("VFRAME\n");
|
|
||||||
evaluxn(&u, u.vframe);
|
evaluxn(&u, u.vframe);
|
||||||
|
|
||||||
|
/*
|
||||||
echos(&u.wst, 0x40, "stack");
|
echos(&u.wst, 0x40, "stack");
|
||||||
echom(&u.ram, 0x40, "ram");
|
echom(&u.ram, 0x40, "ram");
|
||||||
echof(&u);
|
echof(&u);
|
||||||
|
*/
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue