mirror of
https://github.com/janet-lang/janet
synced 2025-10-16 00:07:40 +00:00
Use keywords in the assembly interface.
This is simply more idiomatic, removes some unused and undocumented features of the assembly interface, and simplifies it somewhat.
This commit is contained in:
@@ -91,8 +91,8 @@
|
||||
# Assembly test
|
||||
# Fibonacci sequence, implemented with naive recursion.
|
||||
(def fibasm (asm '{
|
||||
arity 1
|
||||
bytecode [
|
||||
:arity 1
|
||||
:bytecode [
|
||||
(ltim 1 0 0x2) # $1 = $0 < 2
|
||||
(jmpif 1 :done) # if ($1) goto :done
|
||||
(lds 1) # $1 = self
|
||||
|
Reference in New Issue
Block a user