From aceeebd3ffb9b6735954324a78f2c9d2097a1cfb Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sat, 28 Feb 2026 13:09:22 +0000 Subject: [PATCH] Move definition of $execute function --- wipforth.wat | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/wipforth.wat b/wipforth.wat index 07cd3e0..996050a 100644 --- a/wipforth.wat +++ b/wipforth.wat @@ -535,6 +535,13 @@ global.set $ip call $next) + (func $execute + call $pop + global.set $cfa + global.get $cfa + i32.load + global.set $fn) + ;; Return and parameter stack primitives (func $tor @@ -660,15 +667,6 @@ global.set $ip call $next) - ;; Execution - - (func $execute - call $pop - global.set $cfa - global.get $cfa - i32.load - global.set $fn) - ;; The codewords function table must contain every codeword we want ;; to be able to run, as it's indices into this table that can be ran ;; with call_indirect in the $trampoline loop. Fantastically, there