Removed global

This commit is contained in:
neauoire 2021-02-08 14:37:23 -08:00
parent 54f807baec
commit 635d3de67b
2 changed files with 2 additions and 2 deletions

View File

@ -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");

2
uxn.c
View File

@ -13,8 +13,6 @@ WITH REGARD TO THIS SOFTWARE.
#include "uxn.h" #include "uxn.h"
Uxn cpu;
#pragma mark - Operations #pragma mark - Operations
/* clang-format off */ /* clang-format off */