commit c29c480
neauoire
·
2023-11-01 18:12:57 +0000 UTC
parent 6b97172
Removed unused variable
1 files changed,
+4,
-5
+4,
-5
1@@ -27,17 +27,16 @@ WITH REGARD TO THIS SOFTWARE.
2 int
3 uxn_eval(Uxn *u, Uint16 pc)
4 {
5- Uint8 t, ksp, *sp, *tp, *ram = u->ram;
6+ Uint8 t, kp, *sp, *ram = u->ram;
7 Uint16 tt, a, b, c;
8 if(!pc || u->dev[0x0f]) return 0;
9 for(;;) {
10 Uint8 ins = ram[pc++], opc = ins & 0x1f;
11 Uint8 m2 = ins & 0x20;
12 Stack *s = ins & 0x40 ? &u->rst : &u->wst;
13- if(ins & 0x80) {
14- ksp = s->ptr;
15- sp = &ksp;
16- } else
17+ if(ins & 0x80)
18+ kp = s->ptr, sp = &kp;
19+ else
20 sp = &s->ptr;
21 /* Opcodes */
22 switch(opc - (!opc * (ins >> 5))) {