remove chline/cvline dupes
This commit is contained in:
@@ -9,12 +9,6 @@
|
|||||||
.import soft80_cgetc
|
.import soft80_cgetc
|
||||||
.export _cgetc := soft80_cgetc
|
.export _cgetc := soft80_cgetc
|
||||||
|
|
||||||
; soft80_chline.s
|
|
||||||
.import soft80_chlinexy
|
|
||||||
.import soft80_chline
|
|
||||||
.export _chlinexy := soft80_chlinexy
|
|
||||||
.export _chline := soft80_chline
|
|
||||||
|
|
||||||
; soft80_color.s
|
; soft80_color.s
|
||||||
.import soft80_textcolor
|
.import soft80_textcolor
|
||||||
.import soft80_bgcolor
|
.import soft80_bgcolor
|
||||||
@@ -39,12 +33,6 @@
|
|||||||
.export newline := soft80_newline
|
.export newline := soft80_newline
|
||||||
.export plot := soft80_plot
|
.export plot := soft80_plot
|
||||||
|
|
||||||
; soft80_cvline.s
|
|
||||||
.import soft80_cvlinexy
|
|
||||||
.import soft80_cvline
|
|
||||||
.export _cvlinexy := soft80_cvlinexy
|
|
||||||
.export _cvline := soft80_cvline
|
|
||||||
|
|
||||||
; soft80_kclrscr.s
|
; soft80_kclrscr.s
|
||||||
.import soft80_kclrscr
|
.import soft80_kclrscr
|
||||||
.export _clrscr := soft80_kclrscr
|
.export _clrscr := soft80_kclrscr
|
||||||
@@ -58,5 +46,10 @@
|
|||||||
.import soft80_screensize
|
.import soft80_screensize
|
||||||
.export screensize := soft80_screensize
|
.export screensize := soft80_screensize
|
||||||
|
|
||||||
.export mcb_spritememory := soft80_spriteblock
|
; VIC sprite data for the mouse pointer
|
||||||
.export mcb_spritepointer := (soft80_vram + $03F8)
|
.export mcb_spritememory := soft80_spriteblock
|
||||||
|
.export mcb_spritepointer := (soft80_vram + $03F8)
|
||||||
|
|
||||||
|
; Chars used by chline () and cvline ()
|
||||||
|
.exportzp chlinechar = CH_HLINE
|
||||||
|
.exportzp cvlinechar = CH_VLINE
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
;
|
|
||||||
; Groepaz/Hitmen, 12.10.2015
|
|
||||||
;
|
|
||||||
; void chlinexy (unsigned char x, unsigned char y, unsigned char length);
|
|
||||||
; void chline (unsigned char length);
|
|
||||||
;
|
|
||||||
|
|
||||||
.export soft80_chlinexy, soft80_chline
|
|
||||||
.import popa, _gotoxy, soft80_cputdirect
|
|
||||||
.importzp tmp1
|
|
||||||
|
|
||||||
.include "c64.inc"
|
|
||||||
.include "soft80.inc"
|
|
||||||
|
|
||||||
soft80_chlinexy:
|
|
||||||
pha ; Save the length
|
|
||||||
jsr popa ; Get y
|
|
||||||
jsr _gotoxy ; Call this one, will pop params
|
|
||||||
pla ; Restore the length
|
|
||||||
|
|
||||||
soft80_chline:
|
|
||||||
cmp #0 ; Is the length zero?
|
|
||||||
beq L9 ; Jump if done
|
|
||||||
sta tmp1
|
|
||||||
L1: lda #CH_HLINE ; Horizontal line, petscii code
|
|
||||||
jsr soft80_cputdirect ; Direct output
|
|
||||||
dec tmp1
|
|
||||||
bne L1
|
|
||||||
L9: rts
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
;
|
|
||||||
; Groepaz/Hitmen, 12.10.2015
|
|
||||||
;
|
|
||||||
; void cvlinexy (unsigned char x, unsigned char y, unsigned char length);
|
|
||||||
; void cvline (unsigned char length);
|
|
||||||
;
|
|
||||||
|
|
||||||
.export soft80_cvline, soft80_cvlinexy
|
|
||||||
.import popa, _gotoxy, soft80_putchar, soft80_newline
|
|
||||||
.importzp tmp1
|
|
||||||
|
|
||||||
.include "c64.inc"
|
|
||||||
.include "soft80.inc"
|
|
||||||
|
|
||||||
soft80_cvlinexy:
|
|
||||||
pha ; Save the length
|
|
||||||
jsr popa ; Get y
|
|
||||||
jsr _gotoxy ; Call this one, will pop params
|
|
||||||
pla ; Restore the length and run into soft80_cvlinexy
|
|
||||||
|
|
||||||
soft80_cvline:
|
|
||||||
cmp #0 ; Is the length zero?
|
|
||||||
beq L9 ; Jump if done
|
|
||||||
sta tmp1
|
|
||||||
L1: lda #CH_VLINE ; Vertical bar, petscii code
|
|
||||||
jsr soft80_putchar ; Write, no cursor advance
|
|
||||||
jsr soft80_newline ; Advance cursor to next line
|
|
||||||
dec tmp1
|
|
||||||
bne L1
|
|
||||||
L9: rts
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user