diff --git a/src/uxn.c b/src/uxn.c index 275b829..4e0bdbe 100644 --- a/src/uxn.c +++ b/src/uxn.c @@ -12,14 +12,14 @@ WITH REGARD TO THIS SOFTWARE. */ #define OPC(opc, init, body) {\ - case 0x00|opc: {enum{_2=0,_r=0};init body;} break;\ - case 0x20|opc: {enum{_2=1,_r=0};init body;} break;\ - case 0x40|opc: {enum{_2=0,_r=1};init body;} break;\ - case 0x60|opc: {enum{_2=1,_r=1};init body;} break;\ - case 0x80|opc: {enum{_2=0,_r=0};int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\ - case 0xa0|opc: {enum{_2=1,_r=0};int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\ - case 0xc0|opc: {enum{_2=0,_r=1};int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\ - case 0xe0|opc: {enum{_2=1,_r=1};int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\ + case 0x00|opc: {const int _2=0,_r=0;init body;} break;\ + case 0x20|opc: {const int _2=1,_r=0;init body;} break;\ + case 0x40|opc: {const int _2=0,_r=1;init body;} break;\ + case 0x60|opc: {const int _2=1,_r=1;init body;} break;\ + case 0x80|opc: {const int _2=0,_r=0;int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\ + case 0xa0|opc: {const int _2=1,_r=0;int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\ + case 0xc0|opc: {const int _2=0,_r=1;int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\ + case 0xe0|opc: {const int _2=1,_r=1;int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\ } /* Microcode */