2022-11-15 17:51:52 +00:00
|
|
|
%import textio
|
2022-11-29 23:15:13 +00:00
|
|
|
%import cx16logo
|
|
|
|
|
|
|
|
nop {
|
|
|
|
sub lda(ubyte sec) -> ubyte {
|
|
|
|
asl:
|
|
|
|
ubyte brk = sec
|
|
|
|
sec++
|
|
|
|
brk += sec
|
|
|
|
return brk
|
|
|
|
}
|
|
|
|
}
|
2022-11-29 19:09:10 +00:00
|
|
|
|
2022-10-22 11:33:35 +00:00
|
|
|
main {
|
2022-11-28 22:07:07 +00:00
|
|
|
|
2022-11-29 23:15:13 +00:00
|
|
|
sub ffalse(ubyte arg) -> ubyte {
|
|
|
|
arg++
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
sub ftrue(ubyte arg) -> ubyte {
|
|
|
|
arg++
|
|
|
|
return 128
|
|
|
|
}
|
|
|
|
|
|
|
|
sub start() {
|
|
|
|
ubyte col = 10
|
|
|
|
ubyte row = 20
|
|
|
|
cx16logo.logo_at(col, row)
|
|
|
|
txt.setcc(10, 10, 2, 3)
|
|
|
|
txt.print_ub(nop.lda(42))
|
|
|
|
txt.nl()
|
|
|
|
txt.print_uw(nop.lda.asl)
|
|
|
|
|
|
|
|
void ffalse(99)
|
|
|
|
void ftrue(99)
|
|
|
|
}
|
2022-09-18 14:04:49 +00:00
|
|
|
}
|