~rabbits/drifblim

300a23098d13b62855971955d3113e0aaa4aebb8 — Devine Lu Linvega 2 months ago ae82dd0
Fixed issue with JSI
2 files changed, 9 insertions(+), 10 deletions(-)

M examples/hello.tal
M src/drifblim.tal
M examples/hello.tal => examples/hello.tal +8 -9
@@ 2,19 2,18 @@

|0100 @program

	;hello-word

	&while
		( send ) LDAk #18 DEO
		( loop ) INC2 LDAk ,&while JCN
	POP2

	;hello-word print-str
	#010f DEO

BRK

@string "hello! $1
@print-str ( str* -- )

	&while
		( send ) LDAk #18 DEO
		( loop ) INC2 LDAk ?&while
	POP2

123c
JMP2r

~examples/include.tal

M src/drifblim.tal => src/drifblim.tal +1 -1
@@ 115,7 115,7 @@ JMP2r
( calls )
&do-litjmi #20 ;write JSR2 INC2 ;get-ref JSR2 LDA2 ;write-short JMP2
&do-litjci #40 ;write JSR2 INC2 ;get-ref JSR2 LDA2 ;write-short JMP2
&do-litjsi #60 ;write JSR2 INC2 ;get-ref JSR2 LDA2 ;write-short JMP2
&do-litjsi #60 ;write JSR2 ;get-ref JSR2 LDA2 ;write-short JMP2
( hexadecimals )
&do-rawhex ;write-rawhex JMP2
&do-lithex INC2 ;write-lithex JMP2