Browse code

Remove FLAG_SHORT.

Andrew Alderwick authored on 26/03/2021 17:02:14
Showing 2 changed files
... ...
@@ -132,14 +132,11 @@ lituxn(Uxn *u, Uint8 instr)
132 132
 void
133 133
 opcuxn(Uxn *u, Uint8 instr)
134 134
 {
135
-	Uint8 op = instr & 0x1f, freturn;
136
-	setflag(&u->status, FLAG_SHORT, (instr >> 5) & 1);
135
+	Uint8 op = instr & 0x3f, freturn;
137 136
 	setflag(&u->status, FLAG_RETURN, (instr >> 6) & 1);
138 137
 	freturn = getflag(&u->status, FLAG_RETURN);
139 138
 	u->src = freturn ? &u->rst : &u->wst;
140 139
 	u->dst = freturn ? &u->wst : &u->rst;
141
-	if(getflag(&u->status, FLAG_SHORT))
142
-		op += 32;
143 140
 	(*ops[op])(u);
144 141
 }
145 142
 
... ...
@@ -17,7 +17,6 @@ typedef unsigned short Uint16;
17 17
 typedef signed short Sint16;
18 18
 
19 19
 #define FLAG_HALT 0x01
20
-#define FLAG_SHORT 0x02
21 20
 #define FLAG_RETURN 0x04
22 21
 #define PAGE_DEVICE 0x0100
23 22