... | ... |
@@ -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 |
|