Browse code

Tiny optimization

neauoire authored on 04/04/2021 17:03:20
Showing 3 changed files
... ...
@@ -28,7 +28,7 @@ else
28 28
 fi
29 29
 
30 30
 echo "Assembling.."
31
-./bin/assembler projects/examples/dev.time.usm bin/boot.rom
31
+./bin/assembler projects/software/left.usm bin/boot.rom
32 32
 
33 33
 echo "Running.."
34 34
 if [ "${2}" = '--cli' ]; 
... ...
@@ -145,7 +145,7 @@ opcuxn(Uxn *u, Uint8 instr)
145 145
 int
146 146
 stepuxn(Uxn *u, Uint8 instr)
147 147
 {
148
-	if(getflag(&u->status, FLAG_LIT2) || getflag(&u->status, FLAG_LIT1))
148
+	if(u->status & 0x0c)
149 149
 		lituxn(u, instr);
150 150
 	else
151 151
 		opcuxn(u, instr);
... ...
@@ -17,8 +17,8 @@ typedef unsigned short Uint16;
17 17
 typedef signed short Sint16;
18 18
 
19 19
 #define FLAG_HALT 0x01
20
-#define FLAG_LIT1 0x02
21
-#define FLAG_LIT2 0x04
20
+#define FLAG_LIT1 0x04
21
+#define FLAG_LIT2 0x08
22 22
 #define PAGE_DEVICE 0x0100
23 23
 #define PAGE_VECTORS 0x0200
24 24