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-04-04 21:47:33 +00:00
|
|
|
romsub $2000 = func1() clobbers(X) -> ubyte @A, word @R0, byte @R1
|
|
|
|
romsub $3000 = func2() clobbers(X) -> ubyte @A, uword @R0, uword @R1
|
|
|
|
romsub $4000 = func3() clobbers(X) -> ubyte @R0
|
|
|
|
|
2024-03-02 13:26:02 +00:00
|
|
|
sub start() {
|
2024-04-04 21:47:33 +00:00
|
|
|
bool flag
|
|
|
|
void cbm.GETIN()
|
|
|
|
flag, cx16.r1L = cbm.GETIN()
|
|
|
|
|
|
|
|
void, cx16.r0s, cx16.r1sL = func1()
|
|
|
|
void, cx16.r2, cx16.r1 = func2()
|
|
|
|
cx16.r0L = func3()
|
|
|
|
cx16.r0H = func3()
|
2024-03-28 22:24:14 +00:00
|
|
|
}
|
2024-03-16 19:58:45 +00:00
|
|
|
}
|