From 44fa14076985405d8390d50b92f6a2fdbcb7f751 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 1 Sep 2025 09:57:18 +0200 Subject: Support simple variable assignment --- boot/stage2.elna | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'boot/stage2.elna') diff --git a/boot/stage2.elna b/boot/stage2.elna index a9de48d..ce9de8a 100644 --- a/boot/stage2.elna +++ b/boot/stage2.elna @@ -4,8 +4,12 @@ # Stage2 compiler. # -# It supports declaring and calling procedures without arguments. -# A procedure name should start with an underscore. +# - Procedures without none or one argument. +# - Goto statements. +# - Character and integer literals. +# - Passing local variables to procedures. +# - Local variables should have the format: v00, +# where 00 is its offset from the sp register. .section .rodata -- cgit v1.2.3