From 7010d42930260812f0b5c2e59f68a06a14571929 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 10 May 2018 00:26:18 +0100 Subject: [PATCH] fweep: more tidying --- Applications/games/fweep.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Applications/games/fweep.c b/Applications/games/fweep.c index d22cbc40..cabd6545 100644 --- a/Applications/games/fweep.c +++ b/Applications/games/fweep.c @@ -109,8 +109,8 @@ uint16_t inst_args[8]; char text_buffer[128]; int textptr; uint8_t cur_prop_size; -int zch_shift; -int zch_shiftlock; +uint8_t zch_shift; +uint8_t zch_shiftlock; int zch_code; /* @@ -497,6 +497,7 @@ void enter_routine(uint32_t address, boolean stored, int argc) if (frameptr == FRAMESIZE - 1) panic("out of frames.\n"); + /* FIXME: use pointers */ frames[frameptr].pc = program_counter; frames[++frameptr].argc = argc; frames[frameptr].start = stackptr; @@ -521,6 +522,7 @@ void enter_routine(uint32_t address, boolean stored, int argc) void exit_routine(uint16_t result) { + /* FIXME: we want a live ptr to top frame */ stackptr = frames[frameptr].start; program_counter = frames[--frameptr].pc; if (frames[frameptr + 1].stored) @@ -654,6 +656,7 @@ input_again: return 13; } +/* FIXME: stop using uint64_t */ uint64_t dictionary_get(uint32_t addr) { uint64_t v = 0; @@ -665,6 +668,7 @@ uint64_t dictionary_get(uint32_t addr) uint64_t dictionary_encode(uint8_t * text, int len) { + /* FIXME: stop using uint64_t */ uint64_t v = 0; int c = VERSION > 3 ? 9 : 6; int i; -- 2.34.1