uxn

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

commit 5d7151ab616389ba4bc74982577737da76cec47b
parent 4f822f55f3a079a8f27b78cae2c759daf0078b78
Author: neauoire <aliceffekt@gmail.com>
Date:   Sun,  1 Aug 2021 14:56:12 -0700

Cleaned up a few function names

Diffstat:
Msrc/uxn.c | 4++--
Msrc/uxncli.c | 4++--
Msrc/uxnemu.c | 4++--
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/uxn.c b/src/uxn.c @@ -125,9 +125,9 @@ uxn_step(Uxn *u, Uint8 instr) if(fkeep) { pop8 = pop8_keep; u->src->kptr = u->src->ptr; - } else { + } else pop8 = pop8_nokeep; - } + /* run */ (*ops[op])(u); if(u->wst.error) return uxn_halt(u, u->wst.error, "Working-stack", instr); diff --git a/src/uxncli.c b/src/uxncli.c @@ -132,7 +132,7 @@ run(Uxn *u) } static int -loaduxn(Uxn *u, char *filepath) +load(Uxn *u, char *filepath) { FILE *f; if(!(f = fopen(filepath, "rb"))) @@ -151,7 +151,7 @@ main(int argc, char **argv) return error("Input", "Missing"); if(!uxn_boot(&u)) return error("Boot", "Failed"); - if(!loaduxn(&u, argv[1])) + if(!load(&u, argv[1])) return error("Load", "Failed"); devsystem = uxn_port(&u, 0x0, "system", system_talk); diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -476,7 +476,7 @@ run(Uxn *u) } static int -loaduxn(Uxn *u, char *filepath) +load(Uxn *u, char *filepath) { FILE *f; if(!(f = fopen(filepath, "rb"))) @@ -498,7 +498,7 @@ main(int argc, char **argv) return error("usage", "uxnemu file.rom"); if(!uxn_boot(&u)) return error("Boot", "Failed to start uxn."); - if(!loaduxn(&u, argv[1])) + if(!load(&u, argv[1])) return error("Load", "Failed to open rom."); if(!init()) return error("Init", "Failed to initialize emulator.");