mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-02 13:51:36 +00:00
992e008e7d
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.
31 lines
591 B
ArmAsm
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
|