2014-11-22 01:07:55 +01:00
|
|
|
;
|
2015-01-11 18:22:36 +01:00
|
|
|
; copied from CBM implementation
|
|
|
|
;
|
|
|
|
; originally by:
|
2014-11-22 01:07:55 +01:00
|
|
|
; Ullrich von Bassewitz, 06.08.1998
|
|
|
|
;
|
|
|
|
; void gotoxy (unsigned char x, unsigned char y);
|
|
|
|
;
|
2016-06-05 14:58:38 +02:00
|
|
|
.export gotoxy, _gotoxy
|
2014-11-22 01:07:55 +01:00
|
|
|
.import popa, plot
|
2015-02-12 22:12:51 +01:00
|
|
|
.include "extzp.inc"
|
2014-11-22 01:07:55 +01:00
|
|
|
|
2016-06-05 14:58:38 +02:00
|
|
|
gotoxy:
|
|
|
|
jsr popa ; Get Y
|
|
|
|
|
2014-11-22 01:07:55 +01:00
|
|
|
_gotoxy:
|
|
|
|
sta CURS_Y ; Set Y
|
|
|
|
jsr popa ; Get X
|
|
|
|
sta CURS_X ; Set X
|
|
|
|
jmp plot ; Set the cursor position
|