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
|
|
|
; - Draw40Chars
|
|
|
|
; - DrawCenteredString
|
|
|
|
; - DrawString
|
2018-12-23 16:13:47 +00:00
|
|
|
;
|
|
|
|
|
2019-10-09 17:04:39 +00:00
|
|
|
DrawString
|
2021-10-18 22:18:22 +00:00
|
|
|
jsr StoreAYAndSwitchToBank2
|
2019-10-09 17:04:39 +00:00
|
|
|
jsr DrawStringInternal
|
2021-10-18 20:13:05 +00:00
|
|
|
; /!\ execution falls through here to JmpSwitch
|
2020-03-13 00:03:37 +00:00
|
|
|
|
|
|
|
JmpSwitch
|
2019-10-09 17:04:39 +00:00
|
|
|
jmp SwitchToBank1
|
2019-09-15 21:55:16 +00:00
|
|
|
|
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-09-15 21:55:16 +00:00
|
|
|
|
2019-10-09 17:04:39 +00:00
|
|
|
DrawCenteredString
|
2021-10-18 05:04:55 +00:00
|
|
|
jsr StoreAYAndSwitchToBank2
|
2019-10-09 17:04:39 +00:00
|
|
|
jsr DrawCenteredStringInternal
|
2021-10-18 05:04:55 +00:00
|
|
|
bne JmpSwitch ; always
|