uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 4f6a29f57d19256d31854d177a4fdbd1fcbfedca
parent a2e40d9d10c11ef48f4f93d0dc86f5085b4263ce
Author: neauoire <aliceffekt@gmail.com>
Date:   Mon, 30 Aug 2021 10:19:33 -0700

Reverted flags

Diffstat:
Msrc/uxn.c | 6+++---
Msrc/uxnasm.c | 8++++----
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/uxn.c b/src/uxn.c @@ -12,9 +12,9 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE. */ -#define MODE_RETURN 0x20 -#define MODE_SHORT 0x40 -#define MODE_KEEP 0x80 +#define MODE_SHORT 0x20 +#define MODE_RETURN 0x40 +#define MODE_KEEP 0x80 #pragma mark - Operations diff --git a/src/uxnasm.c b/src/uxnasm.c @@ -88,10 +88,10 @@ findopcode(char *s) if(!scmp(ops[i], s, 3)) continue; while(s[3 + m]) { - if(s[3 + m] == 'r') - i |= (1 << 5); /* mode: return */ - else if(s[3 + m] == '2') - i |= (1 << 6); /* mode: short */ + if(s[3 + m] == '2') + i |= (1 << 5); /* mode: short */ + else if(s[3 + m] == 'r') + i |= (1 << 6); /* mode: return */ else if(s[3 + m] == 'k') i |= (1 << 7); /* mode: keep */ else