forked from n3tael/labast
[UNVERIFIED] update to spec 1.10, parser rewrite.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
; written by Labashki developer - aeris
|
||||
@ 0
|
||||
scan
|
||||
scan
|
||||
scan
|
||||
|jmp 0
|
||||
|
||||
@ 1
|
||||
add
|
||||
meow
|
||||
quit
|
||||
|
||||
@ 2
|
||||
sub
|
||||
meow dkdkd
|
||||
quit
|
||||
|
||||
@ 3
|
||||
mul
|
||||
meow
|
||||
quit
|
||||
|
||||
@ 4
|
||||
div
|
||||
meow
|
||||
quit
|
||||
@@ -0,0 +1,30 @@
|
||||
push 72 ; H
|
||||
putc ; Print to console
|
||||
push 101 ; e
|
||||
putc
|
||||
push 108 ; l
|
||||
putc
|
||||
push 108 ; l
|
||||
putc
|
||||
push 111 ; o
|
||||
putc
|
||||
push 32 ; <space>
|
||||
putc
|
||||
push 76 ; L
|
||||
putc
|
||||
push 97 ; a
|
||||
putc
|
||||
push 98 ; b
|
||||
putc
|
||||
push 97 ; a
|
||||
putc
|
||||
push 115 ; s
|
||||
putc
|
||||
push 104 ; h
|
||||
putc
|
||||
push 107 ; k
|
||||
putc
|
||||
push 105 ; i
|
||||
putc
|
||||
push 33 ; !
|
||||
putc
|
||||
+1
-30
@@ -1,30 +1 @@
|
||||
push 72 ; H
|
||||
putc ; Print to console
|
||||
push 101 ; e
|
||||
putc
|
||||
push 108 ; l
|
||||
putc
|
||||
push 108 ; l
|
||||
putc
|
||||
push 111 ; o
|
||||
putc
|
||||
push 32 ; <space>
|
||||
putc
|
||||
push 76 ; L
|
||||
putc
|
||||
push 97 ; a
|
||||
putc
|
||||
push 98 ; b
|
||||
putc
|
||||
push 97 ; a
|
||||
putc
|
||||
push 115 ; s
|
||||
putc
|
||||
push 104 ; h
|
||||
putc
|
||||
push 107 ; k
|
||||
putc
|
||||
push 105 ; i
|
||||
putc
|
||||
push 33 ; !
|
||||
putc
|
||||
$print Hello Labashki!
|
||||
Reference in New Issue
Block a user