Browse code

Removed global

neauoire authored on 08/02/2021 22:37:23
Showing 2 changed files
... ...
@@ -53,12 +53,14 @@ int
53 53
 main(int argc, char *argv[])
54 54
 {
55 55
 	Uxn cpu;
56
+
56 57
 	if(argc < 2)
57 58
 		return error(&cpu, "No input.", 0);
58 59
 	if(!load(&cpu, argv[1]))
59 60
 		return error(&cpu, "Load error", 0);
60 61
 	if(!boot(&cpu))
61 62
 		return error(&cpu, "Boot error", 0);
63
+
62 64
 	/* print result */
63 65
 	echos(&cpu.wst, 0x40, "stack");
64 66
 	echom(&cpu.ram, 0x40, "ram");
... ...
@@ -13,8 +13,6 @@ WITH REGARD TO THIS SOFTWARE.
13 13
 
14 14
 #include "uxn.h"
15 15
 
16
-Uxn cpu;
17
-
18 16
 #pragma mark - Operations
19 17
 
20 18
 /* clang-format off */