4cade/src/ui.font.a

43 lines
904 B
Plaintext
Raw Normal View History

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