4cade/src/ui.font.a
2020-03-16 21:58:05 -04:00

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