mirror of
https://github.com/a2-4am/4cade.git
synced 2024-08-28 14:29:22 +00:00
43 lines
904 B
Plaintext
43 lines
904 B
Plaintext
;license:MIT
|
|
;(c) 2018-2020 by 4am
|
|
;
|
|
; hi-res font drawing routines
|
|
;
|
|
; Glue functions that handle bank switching and calling the real font drawing routines
|
|
; that live in LC RAM 2 now.
|
|
;
|
|
; Public functions
|
|
; - DrawPage
|
|
; - Draw40Chars
|
|
; - DrawCenteredString
|
|
; - DrawString
|
|
; - DrawBuffer
|
|
;
|
|
|
|
DrawString
|
|
jsr SwitchToBank2
|
|
jsr DrawStringInternal
|
|
bmi JmpSwitch ; always
|
|
|
|
DrawPage
|
|
jsr SwitchToBank2
|
|
jsr DrawPageInternal
|
|
|
|
JmpSwitch
|
|
jmp SwitchToBank1
|
|
|
|
Draw40Chars
|
|
jsr SwitchToBank2
|
|
jsr Draw40CharsInternal
|
|
beq JmpSwitch ; always
|
|
|
|
DrawCenteredString
|
|
jsr SwitchToBank2
|
|
jsr DrawCenteredStringInternal
|
|
bmi JmpSwitch ; always
|
|
|
|
DrawBuffer
|
|
jsr SwitchToBank2
|
|
jsr DrawBufferInternal
|
|
bmi JmpSwitch ; always
|