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
|
2018-12-23 11:13:47 -05:00
|
|
|
;
|
|
|
|
|
2019-10-09 13:04:39 -04:00
|
|
|
DrawString
|
2021-10-18 01:04:55 -04:00
|
|
|
jsr StoreAYAndSwitchToBank2
|
2019-10-09 13:04:39 -04:00
|
|
|
jsr DrawStringInternal
|
2021-10-18 01:04:55 -04:00
|
|
|
bne JmpSwitch ; always
|
2018-12-23 11:13:47 -05:00
|
|
|
|
2019-10-09 13:04:39 -04:00
|
|
|
DrawPage
|
2021-10-18 01:04:55 -04:00
|
|
|
jsr StoreAYAndSwitchToBank2
|
2019-10-09 13:04:39 -04:00
|
|
|
jsr DrawPageInternal
|
2020-03-12 17:03:37 -07:00
|
|
|
|
|
|
|
JmpSwitch
|
2019-10-09 13:04:39 -04:00
|
|
|
jmp SwitchToBank1
|
2019-09-15 17:55:16 -04:00
|
|
|
|
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-09-15 17:55:16 -04:00
|
|
|
|
2019-10-09 13:04:39 -04:00
|
|
|
DrawCenteredString
|
2021-10-18 01:04:55 -04:00
|
|
|
jsr StoreAYAndSwitchToBank2
|
2019-10-09 13:04:39 -04:00
|
|
|
jsr DrawCenteredStringInternal
|
2021-10-18 01:04:55 -04:00
|
|
|
bne JmpSwitch ; always
|