4cade/src/ui.font.a

43 lines
904 B
Plaintext
Raw Normal View History

2018-12-23 11:13:47 -05:00
;license:MIT
2020-03-12 17:03:37 -07:00
;(c) 2018-2020 by 4am
2018-12-23 11:13:47 -05:00
;
; hi-res font drawing routines
;
2019-10-09 13:04:39 -04:00
; Glue functions that handle bank switching and calling the real font drawing routines
; that live in LC RAM 2 now.
2019-09-10 14:21:23 -04:00
;
2018-12-23 11:13:47 -05:00
; Public functions
2019-10-09 13:04:39 -04:00
; - DrawPage
; - Draw40Chars
; - DrawCenteredString
; - DrawString
; - DrawBuffer
2018-12-23 11:13:47 -05:00
;
2019-10-09 13:04:39 -04:00
DrawString
jsr SwitchToBank2
jsr DrawStringInternal
2020-03-12 17:03:37 -07:00
bmi JmpSwitch ; always
2018-12-23 11:13:47 -05:00
2019-10-09 13:04:39 -04:00
DrawPage
jsr SwitchToBank2
jsr DrawPageInternal
2020-03-12 17:03:37 -07:00
JmpSwitch
2019-10-09 13:04:39 -04:00
jmp SwitchToBank1
2019-10-09 13:04:39 -04:00
Draw40Chars
jsr SwitchToBank2
jsr Draw40CharsInternal
2020-03-12 17:03:37 -07:00
beq JmpSwitch ; always
2019-10-09 13:04:39 -04:00
DrawCenteredString
jsr SwitchToBank2
jsr DrawCenteredStringInternal
2020-03-12 17:03:37 -07:00
bmi JmpSwitch ; always
2018-12-23 11:13:47 -05:00
2019-10-09 13:04:39 -04:00
DrawBuffer
jsr SwitchToBank2
jsr DrawBufferInternal
2020-03-12 17:03:37 -07:00
bmi JmpSwitch ; always