Jump and Call are working as intended.

This commit is contained in:
2025-08-15 16:03:14 +10:00
parent 914c6febbe
commit 0069c573e7
11 changed files with 137 additions and 57 deletions

View File

@@ -3,8 +3,10 @@ text0 "Hello, World!\n"
file_name "example.txt"
.code:
sd.int32 $4 123
write_file:
sd.int32 $20 -4
sd.int64 $20 label0
jmp 20
write_file:
sd.int32 $10 file_name
sd.int32 $11 11
sd.int32 $12 1
@@ -13,6 +15,9 @@ sd.int32 $11 text0
sd.int32 $12 14
sys 4
return
label0:
sd.int64 $20 write_file
call 20
sd.int32 $10 100
sys 1
bmath add Int32 $4 $5 $6