add some conio functions
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
.import popa, _gotoxy, cputdirect, setcursor
|
||||
.importzp tmp1
|
||||
|
||||
.ifndef __ATARI5200__
|
||||
CHRCODE = $12+64
|
||||
.else
|
||||
CHRCODE = 14
|
||||
.endif
|
||||
|
||||
_chlinexy:
|
||||
pha ; Save the length
|
||||
jsr popa ; Get y
|
||||
@@ -19,12 +25,8 @@ _chline:
|
||||
cmp #0 ; Is the length zero?
|
||||
beq L9 ; Jump if done
|
||||
sta tmp1
|
||||
L1: lda #$12+64 ; Horizontal line, screen code
|
||||
L1: lda #CHRCODE ; Horizontal line, screen code
|
||||
jsr cputdirect ; Direct output
|
||||
dec tmp1
|
||||
bne L1
|
||||
L9: jmp setcursor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,6 +10,12 @@
|
||||
.import popa, _gotoxy, putchar, setcursor
|
||||
.importzp tmp1
|
||||
|
||||
.ifndef __ATARI5200__
|
||||
CHRCODE = $7C ; Vertical bar
|
||||
.else
|
||||
CHRCODE = 1 ; exclamation mark
|
||||
.endif
|
||||
|
||||
_cvlinexy:
|
||||
pha ; Save the length
|
||||
jsr popa ; Get y
|
||||
@@ -22,7 +28,7 @@ _cvline:
|
||||
sta tmp1
|
||||
L1: lda COLCRS
|
||||
pha
|
||||
lda #$7C ; Vertical bar
|
||||
lda #CHRCODE ; Vertical bar
|
||||
jsr putchar ; Write, no cursor advance
|
||||
pla
|
||||
sta COLCRS
|
||||
@@ -30,6 +36,3 @@ L1: lda COLCRS
|
||||
dec tmp1
|
||||
bne L1
|
||||
L9: jmp setcursor
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user