2020-12-27 01:22:18 +00:00
|
|
|
%import textio
|
2021-01-03 01:45:25 +00:00
|
|
|
%zeropage basicsafe
|
2021-02-15 16:47:48 +00:00
|
|
|
%option no_sysinit
|
2020-12-08 00:02:38 +00:00
|
|
|
|
2020-12-08 21:54:20 +00:00
|
|
|
main {
|
2020-12-21 23:59:07 +00:00
|
|
|
|
2021-01-13 21:32:17 +00:00
|
|
|
sub start() {
|
2021-02-20 01:27:57 +00:00
|
|
|
ubyte rr = bla(1,true,2)
|
|
|
|
txt.print_ub(rr)
|
|
|
|
txt.nl()
|
|
|
|
rr = bla(1,false,2)
|
|
|
|
txt.print_ub(rr)
|
|
|
|
}
|
2021-02-16 22:28:35 +00:00
|
|
|
|
2021-02-20 01:27:57 +00:00
|
|
|
asmsub bla(ubyte aa @A, ubyte cc @Pc, ubyte bb @Y) -> ubyte @A{
|
|
|
|
%asm {{
|
|
|
|
bcc +
|
|
|
|
lda #10
|
|
|
|
bne end
|
|
|
|
+ lda #20
|
|
|
|
end rts
|
|
|
|
}}
|
2021-01-10 14:15:00 +00:00
|
|
|
}
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|