;
.export _cclearxy, _cclear
- .import popa, _gotoxy, chlinedirect
+ .import gotoxy, chlinedirect
_cclearxy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cclear
_cclear:
;
.export _chlinexy, _chline, chlinedirect
- .import popa, _gotoxy, cputdirect
+ .import gotoxy, cputdirect
.include "zeropage.inc"
.include "apple2.inc"
_chlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _chline
_chline:
.endif
.export _cputcxy, _cputc
.export cputdirect, newline, putchar
- .import popa, _gotoxy, VTABZ
+ .import gotoxy, VTABZ
.include "apple2.inc"
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy
- pla ; Restore C
+ jsr gotoxy ; Call this one, will pop params
+ pla ; Restore C and run into _cputc
_cputc:
cmp #$0D ; Test for \r = carrage return
;
.export _cvlinexy, _cvline, cvlinedirect
- .import popa, _gotoxy, putchar, newline
+ .import gotoxy, putchar, newline
.include "zeropage.inc"
_cvlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cvline
_cvline:
; void __fastcall__ gotox (unsigned char x);
;
- .export _gotoxy, _gotox
+ .export gotoxy, _gotoxy, _gotox
.import popa, VTABZ
.include "apple2.inc"
+gotoxy:
+ jsr popa ; Get Y
+
_gotoxy:
clc
adc WNDTOP
;
.export _cclearxy, _cclear
- .import popa, _gotoxy, cputdirect
+ .import gotoxy, cputdirect
.importzp tmp1
_cclearxy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cclear
_cclear:
;
.export _chlinexy, _chline
- .import popa, _gotoxy, cputdirect, setcursor
+ .import gotoxy, cputdirect, setcursor
.importzp tmp1
.ifdef __ATARI5200__
_chlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length
_chline:
.export _cputcxy, _cputc
.export plot, cputdirect, putchar
- .import popa, _gotoxy, mul40
+ .import gotoxy, mul40
.importzp tmp4,ptr4
.import _revflag,setcursor
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
_cputc:
.include "atari.inc"
.export _cvlinexy, _cvline
- .import popa, _gotoxy, putchar, setcursor
+ .import gotoxy, putchar, setcursor
.importzp tmp1
.ifdef __ATARI5200__
_cvlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cvline
_cvline:
.include "atari.inc"
- .export _gotoxy
+ .export gotoxy, _gotoxy
.import popa
.import setcursor
+gotoxy:
+ jsr popa ; Get Y
+
_gotoxy: ; Set the cursor position
sta ROWCRS ; Set Y
jsr popa ; Get X
sta COLCRS ; Set X
lda #0
- sta COLCRS+1 ;
+ sta COLCRS+1
jmp setcursor
.export _cputcxy, _cputc
.export plot, cputdirect, putchar
- .import popa, _gotoxy, mul20
+ .import gotoxy, mul20
.importzp ptr4
.import setcursor
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
_cputc:
.include "atari5200.inc"
- .export _gotoxy
+ .export gotoxy, _gotoxy
.import popa
.import setcursor
+gotoxy:
+ jsr popa ; Get Y
+
_gotoxy: ; Set the cursor position
sta ROWCRS_5200 ; Set Y
jsr popa ; Get X
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
- .import popa, _gotoxy
+ .import gotoxy
.import PLOT
.include "c128.inc"
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
- .import popa, _gotoxy
+ .import gotoxy
.import PLOT
.include "plus4.inc"
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
- .import popa, _gotoxy
+ .import gotoxy
.import PLOT
.include "c64.inc"
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
.export soft80_newline, soft80_plot
.export soft80_checkchar
- .import popa, _gotoxy
+ .import gotoxy
.import soft80_kplot
.import soft80_internal_bgcolor, soft80_internal_cellcolor
soft80_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
.export soft80mono_cputdirect, soft80mono_putchar
.export soft80mono_newline, soft80mono_plot
- .import popa, _gotoxy
+ .import gotoxy
.import soft80mono_kplot
.import soft80mono_internal_bgcolor, soft80mono_internal_cellcolor
soft80mono_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
;
.export _cclearxy, _cclear
- .import popa, _gotoxy, cputdirect
+ .import gotoxy, cputdirect
.importzp tmp1
_cclearxy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cclear
_cclear:
dec tmp1
bne L1
L9: rts
-
-
-
-
;
.export _chlinexy, _chline
- .import popa, _gotoxy, cputdirect
+ .import gotoxy, cputdirect
.importzp tmp1, chlinechar
_chlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length
_chline:
dec tmp1
bne L1
L9: rts
-
-
-
-
;
.export _cvlinexy, _cvline
- .import popa, _gotoxy, putchar, newline
+ .import gotoxy, putchar, newline
.importzp tmp1, cvlinechar
_cvlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cvline
_cvline:
dec tmp1
bne L1
L9: rts
-
-
-
; void gotoxy (unsigned char x, unsigned char y);
;
- .export _gotoxy
+ .export gotoxy, _gotoxy
.import popa, plot
.importzp CURS_X, CURS_Y
+gotoxy:
+ jsr popa ; Get Y
+
_gotoxy:
sta CURS_Y ; Set Y
jsr popa ; Get X
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
- .import popa, _gotoxy
+ .import gotoxy
.import __VIDRAM_START__
.import CURS_X: zp, CURS_Y: zp, CHARCOLOR: zp, RVS: zp
.import SCREEN_PTR: zp, CRAM_PTR: zp
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
.export newline, plot
.destructor setsyscursor
- .import _gotoxy
- .import popa
+ .import gotoxy
.import PLOT
.import ktmp: zp, crtc: zp, CURS_X: zp, CURS_Y: zp, RVS: zp
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
;
.export _cputsxy, _cputs
- .import popa, _gotoxy, _cputc
+ .import gotoxy, _cputc
.importzp ptr1, tmp1
_cputsxy:
sta ptr1 ; Save s for later
stx ptr1+1
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, pop x
+ jsr gotoxy ; Set cursor, pop x and y
jmp L0 ; Same as cputs...
_cputs: sta ptr1 ; Save s
;
.export _chlinexy, _chline
- .import popa, _gotoxy, cputdirect
+ .import gotoxy, cputdirect
.importzp tmp1
.include "gamate.inc"
_chlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length
_chline:
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
- .import popa, _gotoxy
+ .import gotoxy
.import PLOT
.import xsize
.import fontdata
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
;
.export _cvlinexy, _cvline
- .import popa, _gotoxy, putchar, newline
+ .import gotoxy, putchar, newline
.importzp tmp1
.include "gamate.inc"
_cvlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cvline
_cvline:
; void gotoxy (unsigned char x, unsigned char y);
;
- .export _gotoxy
+ .export gotoxy, _gotoxy
.import popa, plot
.include "gamate.inc"
.include "extzp.inc"
+gotoxy:
+ jsr popa ; Get X
+
_gotoxy:
sta CURS_Y ; Set Y
jsr popa ; Get X
; void cclear (unsigned char length);
.export _cclearxy, _cclear
- .import popa, _gotoxy, fixcursor
+ .import gotoxy, fixcursor
.importzp cursor_x, cursor_y, cursor_c
.include "jumptab.inc"
_cclearxy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length
_cclear:
; void chline (unsigned char length);
.export _chlinexy, _chline
- .import popa, _gotoxy, fixcursor
+ .import gotoxy, fixcursor
.importzp cursor_x, cursor_y, cursor_c
.include "jumptab.inc"
_chlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length
_chline:
; UPLINE = ?, KEY_UPARROW = GOTOY, ...
.export _cputcxy, _cputc
- .import _gotoxy, fixcursor
- .import popa
+ .import gotoxy, fixcursor
.import xsize,ysize
.importzp cursor_x, cursor_y, cursor_c, cursor_r
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
; void cvline (unsigned char length);
.export _cvlinexy, _cvline
- .import popa, _gotoxy, fixcursor
+ .import gotoxy, fixcursor
.importzp cursor_x, cursor_y, cursor_r
.include "jumptab.inc"
_cvlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length
_cvline:
; void gotoy (unsigned char y);
; void gotoxy (unsigned char x, unsigned char y);
- .export _gotox, _gotoy, _gotoxy, fixcursor
+ .export _gotox, _gotoy, gotoxy, _gotoxy, fixcursor
.import popa
.importzp cursor_x, cursor_y, cursor_c, cursor_r
sta cursor_r
jmp fixcursor
+gotoxy:
+ jsr popa
+
_gotoxy:
sta cursor_r
jsr popa
;
.export _cclearxy, _cclear
- .import popa, _gotoxy, cputdirect
+ .import gotoxy, cputdirect
.importzp tmp1
_cclearxy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cclear
_cclear:
;
.export _chlinexy, _chline
- .import popa, _gotoxy, cputdirect
+ .import gotoxy, cputdirect
.importzp tmp1
.include "nes.inc"
_chlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length
_chline:
.export _cputcxy, _cputc, cputdirect, putchar
.export newline
.constructor initconio
- .import popa, _gotoxy
+ .import gotoxy
.import ppuinit, paletteinit, ppubuf_put
.import setcursor
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
;
.export _cvlinexy, _cvline
- .import popa, _gotoxy, putchar, newline
+ .import gotoxy, putchar, newline
.importzp tmp1
.include "nes.inc"
_cvlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cvline
_cvline:
; void gotoxy (unsigned char x, unsigned char y);
;
- .export _gotoxy
+ .export gotoxy, _gotoxy
.import setcursor
.import popa
.include "nes.inc"
-.proc _gotoxy
+gotoxy:
+ jsr popa ; Get Y
+_gotoxy:
sta CURS_Y ; Set Y
jsr popa ; Get X
sta CURS_X ; Set X
tay
ldx CURS_Y
jmp setcursor ; Set the cursor position
-
-.endproc
-
-
;
.export _cclearxy, _cclear
- .import popa, _gotoxy, cputdirect
+ .import gotoxy, cputdirect
.importzp tmp1
_cclearxy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cclear
_cclear:
;
.export _chlinexy, _chline
- .import popa, _gotoxy, cputdirect
+ .import gotoxy, cputdirect
.importzp tmp1
_chlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length
_chline:
;
.export _cvlinexy, _cvline
- .import popa, _gotoxy, putchar, newline
+ .import gotoxy, putchar, newline
.importzp tmp1
_cvlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cvline
_cvline:
;
; void gotoxy (unsigned char x, unsigned char y);
;
- .export _gotoxy
+ .export gotoxy, _gotoxy
.import popa, plot
.include "extzp.inc"
+gotoxy:
+ jsr popa ; Get Y
+
_gotoxy:
sta CURS_Y ; Set Y
jsr popa ; Get X
\r
_cputcxy:\r
pha ; Save C\r
- jsr popa ; Get Y\r
- jsr _gotoxy ; Set cursor, drop x\r
+ jsr gotoxy ; Set cursor, drop x and y\r
pla ; Restore C\r
\r
; Plot a character - also used as internal function\r
.macro osi_screen_funcs ScrBase, ScrRamSize, ScrFirstChar, \\r
ScrWidth, ScrHeight, ScrollDist\r
\r
- .import popa, _gotoxy\r
+ .import gotoxy\r
.import _memmove, _memset, pushax\r
.importzp ptr1\r
\r
;
.export _chlinexy, _chline
- .import popa, _gotoxy, cputdirect
+ .import gotoxy, cputdirect
.importzp tmp1
.include "pce.inc"
_chlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length
_chline:
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
- .import popa, _gotoxy
+ .import gotoxy
.import PLOT
.import xsize
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
;
.export _cvlinexy, _cvline
- .import popa, _gotoxy, putchar, newline
+ .import gotoxy, putchar, newline
.importzp tmp1
.include "pce.inc"
_cvlinexy:
pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
+ jsr gotoxy ; Call this one, will pop params
pla ; Restore the length and run into _cvline
_cvline:
; void gotoxy (unsigned char x, unsigned char y);
;
- .export _gotoxy
+ .export gotoxy, _gotoxy
.import popa, plot
.include "pce.inc"
.include "extzp.inc"
+gotoxy:
+ jsr popa ; Get Y
+
_gotoxy:
sta CURS_Y ; Set Y
jsr popa ; Get X
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
- .import popa, _gotoxy
+ .import gotoxy
.include "pet.inc"
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
- .import popa, _gotoxy
+ .import gotoxy
.import PLOT
.include "plus4.inc"
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
- .import popa, _gotoxy
+ .import gotoxy
.import PLOT
.include "vic20.inc"
_cputcxy:
pha ; Save C
- jsr popa ; Get Y
- jsr _gotoxy ; Set cursor, drop x
+ jsr gotoxy ; Set cursor, drop x and y
pla ; Restore C
; Plot a character - also used as internal function