prog8/examples/test.p8

25 lines
378 B
Plaintext
Raw Normal View History

2024-03-09 15:38:46 +01:00
%import textio
%option no_sysinit
2024-03-09 15:38:46 +01:00
%zeropage basicsafe
main {
sub start() {
2024-03-09 15:38:46 +01:00
derp("hello")
mult3("hello")
}
sub derp(str arg) -> str {
cx16.r0++
return arg
}
asmsub mult3(str input @XY) -> ubyte @A, str @XY {
%asm {{
lda #99
ldx #100
ldy #101
rts
}}
2024-03-01 19:45:16 +01:00
}
}