mirror of
https://github.com/irmen/prog8.git
synced 2024-08-27 07:29:07 +00:00
56 lines
880 B
Lua
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
|
|
}}
|
|
|
|
}
|