mirror of
https://github.com/irmen/prog8.git
synced 2024-09-10 09:54:32 +00:00
28 lines
364 B
Lua
28 lines
364 B
Lua
%target c64
|
|
%import textio
|
|
%import syslib
|
|
%zeropage basicsafe
|
|
|
|
|
|
main {
|
|
sub start() {
|
|
withX(1)
|
|
withX(2)
|
|
withX(3)
|
|
withY(6)
|
|
withY(7)
|
|
withY(8)
|
|
}
|
|
|
|
asmsub withX(ubyte foo @X) {
|
|
%asm {{
|
|
rts
|
|
}}
|
|
}
|
|
asmsub withY(ubyte foo @Y) {
|
|
%asm {{
|
|
rts
|
|
}}
|
|
}
|
|
}
|