mirror of
https://github.com/irmen/prog8.git
synced 2024-11-20 03:32:05 +00:00
43 lines
814 B
Lua
43 lines
814 B
Lua
%import c64utils
|
|
%zeropage basicsafe
|
|
|
|
~ main {
|
|
|
|
; @todo see problem in looplabelproblem.p8
|
|
|
|
; @todo gradle fatJar should include the antlr runtime jar
|
|
|
|
sub start() {
|
|
|
|
uword w = 12345
|
|
ubyte flags
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
clear_irqd()
|
|
c64utils.uword2bcd(w)
|
|
flags=read_flags()
|
|
c64scr.print_ubbin(1,flags)
|
|
c64.CHROUT('\n')
|
|
|
|
set_irqd()
|
|
c64utils.uword2bcd(w)
|
|
flags=read_flags()
|
|
c64scr.print_ubbin(1,flags)
|
|
c64.CHROUT('\n')
|
|
|
|
clear_irqd()
|
|
c64utils.uword2bcd(w)
|
|
flags=read_flags()
|
|
c64scr.print_ubbin(1,flags)
|
|
c64.CHROUT('\n')
|
|
|
|
set_irqd()
|
|
c64utils.uword2bcd(w)
|
|
flags=read_flags()
|
|
c64scr.print_ubbin(1,flags)
|
|
c64.CHROUT('\n')
|
|
|
|
}
|
|
}
|