2021-12-21 18:08:33 +00:00
|
|
|
%import textio
|
2022-01-18 20:21:49 +00:00
|
|
|
%zeropage basicsafe
|
2021-12-15 22:43:14 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2022-01-18 20:21:49 +00:00
|
|
|
sub start() {
|
2022-01-23 00:28:16 +00:00
|
|
|
move()
|
2022-01-18 20:21:49 +00:00
|
|
|
}
|
2022-01-21 21:46:10 +00:00
|
|
|
|
2022-01-23 00:28:16 +00:00
|
|
|
sub move() {
|
|
|
|
ubyte mb = cx16.mouse_pos()
|
|
|
|
ubyte @shared xx = cx16.r0H
|
|
|
|
ubyte @shared yy = cx16.r0L
|
|
|
|
func(cx16.r0H)
|
|
|
|
func(cx16.r0L)
|
|
|
|
cx16.vpoke(1, $fc08+2, cx16.r0H)
|
|
|
|
cx16.vpoke(1, $fc08+3, cx16.r0L)
|
|
|
|
}
|
2022-01-21 21:46:10 +00:00
|
|
|
|
2022-01-23 00:28:16 +00:00
|
|
|
asmsub func(ubyte qq @A) {
|
|
|
|
%asm {{
|
|
|
|
rts
|
|
|
|
}}
|
|
|
|
}
|
2022-01-21 21:46:10 +00:00
|
|
|
}
|