mirror of
https://github.com/cc65/cc65.git
synced 2024-11-02 18:06:48 +00:00
24 lines
444 B
ArmAsm
24 lines
444 B
ArmAsm
|
;
|
||
|
; Ullrich von Bassewitz, 06.08.1998
|
||
|
;
|
||
|
; void __fastcall__ gotoxy (unsigned char x, unsigned char y);
|
||
|
; void __fastcall__ gotox (unsigned char x);
|
||
|
;
|
||
|
|
||
|
.export _gotoxy, _gotox
|
||
|
|
||
|
.import popa, VTABZ
|
||
|
|
||
|
.include "apple2.inc"
|
||
|
|
||
|
_gotoxy:
|
||
|
clc
|
||
|
adc WNDTOP
|
||
|
sta CV ; Store Y
|
||
|
jsr VTABZ
|
||
|
jsr popa ; Get X
|
||
|
|
||
|
_gotox:
|
||
|
sta CH ; Store X
|
||
|
rts
|