mirror of https://github.com/janet-lang/janet
Fix comments formating
This commit is contained in:
parent
e33e182eb0
commit
9d41243c15
|
@ -4,18 +4,18 @@
|
||||||
(def fibasm
|
(def fibasm
|
||||||
(asm
|
(asm
|
||||||
'{:arity 1
|
'{:arity 1
|
||||||
:bytecode @[(ltim 1 0 0x2) # $1 = $0 < 2
|
:bytecode @[(ltim 1 0 0x2) # $1 = $0 < 2
|
||||||
(jmpif 1 :done) # if ($1) goto :done
|
(jmpif 1 :done) # if ($1) goto :done
|
||||||
(lds 1) # $1 = self
|
(lds 1) # $1 = self
|
||||||
(addim 0 0 -0x1) # $0 = $0 - 1
|
(addim 0 0 -0x1) # $0 = $0 - 1
|
||||||
(push 0) # push($0), push argument for next function call
|
(push 0) # push($0), push argument for next function call
|
||||||
(call 2 1) # $2 = call($1)
|
(call 2 1) # $2 = call($1)
|
||||||
(addim 0 0 -0x1) # $0 = $0 - 1
|
(addim 0 0 -0x1) # $0 = $0 - 1
|
||||||
(push 0) # push($0)
|
(push 0) # push($0)
|
||||||
(call 0 1) # $0 = call($1)
|
(call 0 1) # $0 = call($1)
|
||||||
(add 0 0 2) # $0 = $0 + $2 (integers)
|
(add 0 0 2) # $0 = $0 + $2 (integers)
|
||||||
:done
|
:done
|
||||||
(ret 0) # return $0
|
(ret 0) # return $0
|
||||||
]}))
|
]}))
|
||||||
|
|
||||||
# Test it
|
# Test it
|
||||||
|
|
Loading…
Reference in New Issue