2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 08.08.1998
|
|
|
|
;
|
2005-03-26 17:03:30 +00:00
|
|
|
; void __fastcall__ chlinexy (unsigned char x, unsigned char y, unsigned char length);
|
|
|
|
; void __fastcall__ chline (unsigned char length);
|
2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export _chlinexy, _chline, chlinedirect
|
|
|
|
.import popa, _gotoxy, cputdirect
|
2005-03-26 17:03:30 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "zeropage.inc"
|
|
|
|
.include "apple2.inc"
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
_chlinexy:
|
2013-05-09 11:56:54 +00:00
|
|
|
pha ; Save the length
|
|
|
|
jsr popa ; Get y
|
|
|
|
jsr _gotoxy ; Call this one, will pop params
|
|
|
|
pla ; Restore the length and run into _chline
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
_chline:
|
2013-05-09 11:56:54 +00:00
|
|
|
.ifdef __APPLE2ENH__
|
|
|
|
ldx #'S' ; MouseText character
|
|
|
|
ldy INVFLG
|
|
|
|
cpy #$FF ; Normal character display mode?
|
|
|
|
beq chlinedirect
|
2005-03-26 17:03:30 +00:00
|
|
|
.endif
|
2013-05-09 11:56:54 +00:00
|
|
|
ldx #'-' | $80 ; Horizontal line, screen code
|
2004-03-11 21:54:22 +00:00
|
|
|
|
|
|
|
chlinedirect:
|
2013-05-09 11:56:54 +00:00
|
|
|
cmp #$00 ; Is the length zero?
|
|
|
|
beq done ; Jump if done
|
|
|
|
sta tmp1
|
|
|
|
: txa ; Screen code
|
|
|
|
jsr cputdirect ; Direct output
|
|
|
|
dec tmp1
|
|
|
|
bne :-
|
2005-03-26 17:03:30 +00:00
|
|
|
done: rts
|