Removed global
This commit is contained in:
parent
54f807baec
commit
635d3de67b
|
@ -53,12 +53,14 @@ int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
Uxn cpu;
|
Uxn cpu;
|
||||||
|
|
||||||
if(argc < 2)
|
if(argc < 2)
|
||||||
return error(&cpu, "No input.", 0);
|
return error(&cpu, "No input.", 0);
|
||||||
if(!load(&cpu, argv[1]))
|
if(!load(&cpu, argv[1]))
|
||||||
return error(&cpu, "Load error", 0);
|
return error(&cpu, "Load error", 0);
|
||||||
if(!boot(&cpu))
|
if(!boot(&cpu))
|
||||||
return error(&cpu, "Boot error", 0);
|
return error(&cpu, "Boot error", 0);
|
||||||
|
|
||||||
/* print result */
|
/* print result */
|
||||||
echos(&cpu.wst, 0x40, "stack");
|
echos(&cpu.wst, 0x40, "stack");
|
||||||
echom(&cpu.ram, 0x40, "ram");
|
echom(&cpu.ram, 0x40, "ram");
|
||||||
|
|
Loading…
Reference in New Issue