- compiler works for basic maths expressions and functions

- basic pointers and reading values from pointers works
- writing to pointers not yet implemented (looks painful so a problem
  for tomorrow)
- updated print library. the compiler has this hardcoded in all programs
  for now
This commit is contained in:
2026-02-03 02:11:30 +00:00
parent 5573c5a609
commit 3afeafc9d4
17 changed files with 2009 additions and 807 deletions
+8 -5
View File
@@ -15,13 +15,16 @@ init:
dw string: "hello world"
start:
lwi 100, rg0
lwi 10, rg1
lwi 1, rg0
lwi 2, rg1
push rg0
push rg1
call maths::multiply
push rg0
call maths::new_divide
pop rg0
pop rg1
hlt
pop rg0
pop zero
push rg0