mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-15 20:30:11 +00:00
shave a byte
This commit is contained in:
parent
6f7f8f7aa5
commit
2929be8f2c
@ -144,7 +144,7 @@ CHEATS_ENABLED = %00001000
|
||||
|
||||
; shared symbols
|
||||
iProDOS_enter = $D66E
|
||||
LoadFileDirect = $DAFB
|
||||
LoadFileDirect = $DAFA
|
||||
launchpatch = $D613
|
||||
iAddToPath = $FEC3
|
||||
itraverse = $D8D9
|
||||
|
@ -16,16 +16,16 @@ DrawPageInternal
|
||||
; drawing starts at VTAB 0
|
||||
; each line starts at column X which was passed in (0-indexed)
|
||||
; clobbers PTR
|
||||
; clobbers $FF
|
||||
; clobbers A/X/Y
|
||||
; preserves all flags, by a quirk of implementation
|
||||
php
|
||||
stx @leftMargin
|
||||
stx $FF
|
||||
ldx #0
|
||||
stx VTAB
|
||||
+ST16 PTR
|
||||
@drawLine
|
||||
@leftMargin=*+1
|
||||
lda #$FD ; SMC
|
||||
lda $FF
|
||||
sta HTAB
|
||||
ldy #0
|
||||
@parseLine
|
||||
@ -75,7 +75,7 @@ DrawPageInternal
|
||||
Draw40CharsInternal
|
||||
; A/Y contains address of character buffer
|
||||
; carry bit clear -> draw on page 1
|
||||
; carry bit set -> draw on page 2
|
||||
;v carry bit set -> draw on page 2
|
||||
; $25 contains textpage line (0..23) (this is the standard VTAB address)
|
||||
; drawing starts at HTAB 0
|
||||
; increments VTAB
|
||||
|
Loading…
x
Reference in New Issue
Block a user