add: pointers, & and * keywords

stack is now long long :sadge:
This commit is contained in:
2024-01-22 19:49:14 +01:00
parent 64f8ecdbb3
commit 827937e4dc
9 changed files with 49 additions and 28 deletions

7
examples/ptr.pasm Normal file
View File

@@ -0,0 +1,7 @@
;; pointers usage example
main:
mov eax, 5
mov a1, &eax ; move the address of eax in a1
mov a1, *a1 ; dereference a1 in a1
end