2005-04-01 09:59:53 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 06.08.1998
|
|
|
|
;
|
|
|
|
; void __fastcall__ gotoxy (unsigned char x, unsigned char y);
|
|
|
|
; void __fastcall__ gotox (unsigned char x);
|
|
|
|
;
|
|
|
|
|
2016-06-05 12:58:38 +00:00
|
|
|
.export gotoxy, _gotoxy, _gotox
|
2005-04-01 09:59:53 +00:00
|
|
|
.import popa, VTABZ
|
|
|
|
|
|
|
|
.include "apple2.inc"
|
|
|
|
|
2016-06-05 12:58:38 +00:00
|
|
|
gotoxy:
|
|
|
|
jsr popa ; Get Y
|
|
|
|
|
2005-04-01 09:59:53 +00:00
|
|
|
_gotoxy:
|
|
|
|
clc
|
|
|
|
adc WNDTOP
|
2013-05-09 11:56:54 +00:00
|
|
|
sta CV ; Store Y
|
2005-04-01 09:59:53 +00:00
|
|
|
jsr VTABZ
|
2013-05-09 11:56:54 +00:00
|
|
|
jsr popa ; Get X
|
2005-04-01 09:59:53 +00:00
|
|
|
|
|
|
|
_gotox:
|
2013-05-09 11:56:54 +00:00
|
|
|
sta CH ; Store X
|
2005-04-01 09:59:53 +00:00
|
|
|
rts
|