prog8/examples/test.p8
2022-11-22 02:04:24 +01:00

56 lines
880 B
Lua

%import textio
%zeropage basicsafe
main {
alsostart:
%asm {{
; inline asm in block #1
nop
}}
%asmbinary "../gradle.properties"
sub start() {
internalstart:
ubyte fact = 10
uword ww = 1<<fact
txt.print_uw(ww)
txt.nl()
ww++
ww = 1<<fact
txt.print_uw(ww)
txt.nl()
txt.nl()
txt.print_uwhex(start, true)
txt.nl()
txt.print_uwhex(alsostart, true)
txt.nl()
txt.print_uwhex(internalstart, true)
txt.nl()
txt.print_uwhex(startend, true)
txt.nl()
txt.print_uwhex(internalend, true)
txt.nl()
internalend:
}
%asm {{
; inline asm in block #2
nop
}}
startend:
%asmbinary "../settings.gradle"
%asm {{
; inline asm in block #3
nop
}}
}