Skip to content

Instantly share code, notes, and snippets.

@lionaneesh
Last active April 1, 2021 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lionaneesh/814d77c40e54900186f918eaa37cabf8 to your computer and use it in GitHub Desktop.
Save lionaneesh/814d77c40e54900186f918eaa37cabf8 to your computer and use it in GitHub Desktop.
Janet Print in asm
(def hello2
(asm
'{max-arity 0
constants @["abc" ,print]
arity 0
slotcount 2
bytecode @[(ldc 1 0) (push 1) (ldc 1 1) (noop) (tcall 1)]
min-arity 0}))
(hello2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment