From d041ebd995612493f604525dac813aad7f83621e Mon Sep 17 00:00:00 2001 From: Lawrence Kesteloot Date: Wed, 6 Sep 2023 09:18:34 -0700 Subject: [PATCH] Fix NEXT statement some more. (#3) --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 0a1621c..5caaec7 100644 --- a/main.c +++ b/main.c @@ -1270,8 +1270,8 @@ static void compile_buffer(uint8_t *buffer, uint16_t line_number) { c[7] = 3; // Skip over indirect jump. // Jump to top of loop, indirectly through ptr1, which has the address. c[8] = I_JMP_IND; - c[9] = (uint8_t) &ptr1 & 0xFF; - c[10] = (uint8_t) &ptr1 >> 8; + c[9] = (uint8_t) (&ptr1 & 0xFF); + c[10] = (uint8_t) (&ptr1 >> 8); g_c = c + 11; } else if (*s == T_DIM) { s += 1;