(uxn.c) The k value does not need masking
This commit is contained in:
parent
f4d74dcd48
commit
2f032854b7
12
src/uxn.c
12
src/uxn.c
|
@ -16,10 +16,10 @@ WITH REGARD TO THIS SOFTWARE.
|
||||||
case 0x20|opc: {enum{_2=1,_r=0}; s = &uxn.wst; init; body; break;}\
|
case 0x20|opc: {enum{_2=1,_r=0}; s = &uxn.wst; init; body; break;}\
|
||||||
case 0x40|opc: {enum{_2=0,_r=1}; s = &uxn.rst; init; body; break;}\
|
case 0x40|opc: {enum{_2=0,_r=1}; s = &uxn.rst; init; body; break;}\
|
||||||
case 0x60|opc: {enum{_2=1,_r=1}; s = &uxn.rst; init; body; break;}\
|
case 0x60|opc: {enum{_2=1,_r=1}; s = &uxn.rst; init; body; break;}\
|
||||||
case 0x80|opc: {enum{_2=0,_r=0}; s = &uxn.wst, kp = uxn.wst.ptr; init; s->ptr = kp; body; break;}\
|
case 0x80|opc: {enum{_2=0,_r=0}; s = &uxn.wst, k = uxn.wst.ptr; init; s->ptr = k; body; break;}\
|
||||||
case 0xa0|opc: {enum{_2=1,_r=0}; s = &uxn.wst, kp = uxn.wst.ptr; init; s->ptr = kp; body; break;}\
|
case 0xa0|opc: {enum{_2=1,_r=0}; s = &uxn.wst, k = uxn.wst.ptr; init; s->ptr = k; body; break;}\
|
||||||
case 0xc0|opc: {enum{_2=0,_r=1}; s = &uxn.rst, kp = uxn.rst.ptr; init; s->ptr = kp; body; break;}\
|
case 0xc0|opc: {enum{_2=0,_r=1}; s = &uxn.rst, k = uxn.rst.ptr; init; s->ptr = k; body; break;}\
|
||||||
case 0xe0|opc: {enum{_2=1,_r=1}; s = &uxn.rst, kp = uxn.rst.ptr; init; s->ptr = kp; body; break;}\
|
case 0xe0|opc: {enum{_2=1,_r=1}; s = &uxn.rst, k = uxn.rst.ptr; init; s->ptr = k; body; break;}\
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Microcode */
|
/* Microcode */
|
||||||
|
@ -42,8 +42,8 @@ WITH REGARD TO THIS SOFTWARE.
|
||||||
int
|
int
|
||||||
uxn_eval(Uint16 pc)
|
uxn_eval(Uint16 pc)
|
||||||
{
|
{
|
||||||
int a,b,c;
|
int a,b,c,k;
|
||||||
Uint8 t, kp;
|
Uint8 t;
|
||||||
Uint16 tt;
|
Uint16 tt;
|
||||||
Stack *s;
|
Stack *s;
|
||||||
if(!pc || uxn.dev[0x0f]) return 0;
|
if(!pc || uxn.dev[0x0f]) return 0;
|
||||||
|
|
Loading…
Reference in New Issue