2024-03-28 22:24:14 +00:00
|
|
|
%import textio
|
2024-03-12 22:39:54 +00:00
|
|
|
%zeropage basicsafe
|
2024-03-20 21:34:39 +00:00
|
|
|
%option no_sysinit
|
2023-12-31 00:02:33 +00:00
|
|
|
|
2024-01-07 17:48:18 +00:00
|
|
|
main {
|
2024-03-02 13:26:02 +00:00
|
|
|
sub start() {
|
2024-03-28 22:24:14 +00:00
|
|
|
ubyte @shared bytevar
|
|
|
|
uword @shared wordvar
|
2024-03-31 21:43:26 +00:00
|
|
|
bool flag
|
2024-03-21 22:40:36 +00:00
|
|
|
|
2024-03-31 21:43:26 +00:00
|
|
|
wordvar, bytevar, void = test4()
|
2024-03-29 15:58:13 +00:00
|
|
|
if_cs
|
|
|
|
txt.print("true! ")
|
|
|
|
else
|
|
|
|
txt.print("false! ")
|
2024-03-28 22:24:14 +00:00
|
|
|
|
|
|
|
txt.print_uwhex(wordvar, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_ub(bytevar)
|
|
|
|
txt.nl()
|
2024-03-21 22:40:36 +00:00
|
|
|
}
|
2024-03-17 22:18:33 +00:00
|
|
|
|
2024-03-28 22:24:14 +00:00
|
|
|
asmsub test4() -> uword @AY, ubyte @X, bool @Pc {
|
|
|
|
%asm {{
|
|
|
|
lda #<$11ee
|
|
|
|
ldy #>$11ee
|
|
|
|
ldx #42
|
2024-03-29 15:58:13 +00:00
|
|
|
clc
|
2024-03-28 22:24:14 +00:00
|
|
|
rts
|
|
|
|
}}
|
|
|
|
}
|
2024-03-16 19:58:45 +00:00
|
|
|
}
|