1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-19 21:31:30 +00:00
6502bench/SourceGen/Examples/Tutorial/Source/Tutorial4.S
Andy McFadden 992e008e7d Add multi-inline extension script to tutorial
It's useful to have an example of an extension script that handles
multiple types of things.  It's also good to show that scripts can
handle data types other than strings, and can chase an address to
format data items elsewhere in the code.

This required updating the tutorial binary, adding the new script,
and updating the tutorial text and associated screen shots.
2021-08-15 10:00:00 -07:00

31 lines
591 B
ArmAsm

; Copyright 2019 faddenSoft. All Rights Reserved.
; See the LICENSE.txt file for distribution terms (Apache 2.0).
;
; Assembler: Merlin 32
org $1000
jsr PrintInlineL1String
str 'How long?'
jsr PrintInlineZString1
asc 'Test one',00
jsr PrintInlineZString2
asc 'Test two',00
jsr PrintInlineAddr
dw test_three
rts
test_three asc 'Test three',00
PrintInlineL1String
rts
PrintInlineZString1
rts
PrintInlineZString2
rts
PrintInlineAddr
rts