mirror of
https://github.com/irmen/prog8.git
synced 2024-07-30 01:29:08 +00:00
38 lines
462 B
Lua
38 lines
462 B
Lua
%import c64lib
|
|
%import c64utils
|
|
%import c64flt
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
|
|
; todo make it possible to use cpu opcodes as varnames such as 'nop' by prefixing all asm vars with something such as '_'
|
|
|
|
sub start() {
|
|
|
|
byte nop2
|
|
|
|
nop2=4
|
|
nop2++
|
|
foo.xxx()
|
|
|
|
derp:
|
|
goto main.nop2
|
|
main.nop2()
|
|
}
|
|
|
|
sub nop2 () {
|
|
c64.CHROUT('\n')
|
|
}
|
|
}
|
|
|
|
foo {
|
|
|
|
sub xxx() {
|
|
|
|
bar:
|
|
goto bar
|
|
}
|
|
|
|
|
|
}
|