commit 7b1e7b6
Devine Lu Linvega
·
2024-08-12 15:34:08 +0000 UTC
parent 2f03285
(uxn.c) Do not set ptr via pointer
1 files changed,
+4,
-4
+4,
-4
1@@ -16,10 +16,10 @@ WITH REGARD TO THIS SOFTWARE.
2 case 0x20|opc: {enum{_2=1,_r=0}; s = &uxn.wst; init; body; break;}\
3 case 0x40|opc: {enum{_2=0,_r=1}; s = &uxn.rst; init; body; break;}\
4 case 0x60|opc: {enum{_2=1,_r=1}; s = &uxn.rst; init; body; break;}\
5- case 0x80|opc: {enum{_2=0,_r=0}; s = &uxn.wst, k = uxn.wst.ptr; init; s->ptr = k; body; break;}\
6- case 0xa0|opc: {enum{_2=1,_r=0}; s = &uxn.wst, k = uxn.wst.ptr; init; s->ptr = k; body; break;}\
7- case 0xc0|opc: {enum{_2=0,_r=1}; s = &uxn.rst, k = uxn.rst.ptr; init; s->ptr = k; body; break;}\
8- case 0xe0|opc: {enum{_2=1,_r=1}; s = &uxn.rst, k = uxn.rst.ptr; init; s->ptr = k; body; break;}\
9+ case 0x80|opc: {enum{_2=0,_r=0}; s = &uxn.wst, k = uxn.wst.ptr; init; uxn.wst.ptr = k; body; break;}\
10+ case 0xa0|opc: {enum{_2=1,_r=0}; s = &uxn.wst, k = uxn.wst.ptr; init; uxn.wst.ptr = k; body; break;}\
11+ case 0xc0|opc: {enum{_2=0,_r=1}; s = &uxn.rst, k = uxn.rst.ptr; init; uxn.rst.ptr = k; body; break;}\
12+ case 0xe0|opc: {enum{_2=1,_r=1}; s = &uxn.rst, k = uxn.rst.ptr; init; uxn.rst.ptr = k; body; break;}\
13 }
14
15 /* Microcode */