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