uxn

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

commit 12552c51a7b4b709204d116031e46773d08ae7ec
parent 44157aae5bb3c4bb2592ca7d07fe16ac6f7502d2
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Sun, 28 Mar 2021 20:38:43 +0100

Removed FLAG_RETURN.

Diffstat:
Msrc/uxn.c | 4+---
Msrc/uxn.h | 1-
2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/uxn.c b/src/uxn.c @@ -132,9 +132,7 @@ lituxn(Uxn *u, Uint8 instr) void opcuxn(Uxn *u, Uint8 instr) { - Uint8 op = instr & 0x3f, freturn; - setflag(&u->status, FLAG_RETURN, (instr >> 6) & 1); - freturn = getflag(&u->status, FLAG_RETURN); + Uint8 op = instr & 0x3f, freturn = instr & 0x40; u->src = freturn ? &u->rst : &u->wst; u->dst = freturn ? &u->wst : &u->rst; (*ops[op])(u); diff --git a/src/uxn.h b/src/uxn.h @@ -17,7 +17,6 @@ typedef unsigned short Uint16; typedef signed short Sint16; #define FLAG_HALT 0x01 -#define FLAG_RETURN 0x04 #define PAGE_DEVICE 0x0100 #define PAGE_VECTORS 0x0200