lasp/examples/asm.lisp
2024-05-03 14:18:42 -05:00

11 lines
196 B
Common Lisp

(define a 12)
; maps fairly directly to the `htasm` assembler
(asm
; zero here might be replaced with a variable
(li64 r1 0)
; like so
(li64 r2 a))
; create a ptr to a
(ptr-to a)