prog8/examples/test.p8

38 lines
462 B
Plaintext
Raw Normal View History

2020-03-24 23:32:54 +00:00
%import c64lib
%import c64utils
%import c64flt
%zeropage basicsafe
2020-07-26 22:32:59 +00:00
main {
; todo make it possible to use cpu opcodes as varnames such as 'nop' by prefixing all asm vars with something such as '_'
2020-07-26 21:32:20 +00:00
sub start() {
2020-08-18 13:16:56 +00:00
byte nop2
nop2=4
nop2++
foo.xxx()
derp:
goto main.nop2
main.nop2()
}
sub nop2 () {
c64.CHROUT('\n')
2020-07-25 23:32:27 +00:00
}
}
foo {
sub xxx() {
bar:
goto bar
}
}