4cade/src/ui.font.a

42 lines
899 B
Plaintext
Raw Normal View History

2018-12-23 16:13:47 +00:00
;license:MIT
;(c) 2018-9 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
; /!\ execution falls through from ui.attract.hgr/HGRActionCallback
DrawString
jsr SwitchToBank2
jsr DrawStringInternal
jmp SwitchToBank1
2018-12-23 16:13:47 +00:00
2019-10-09 17:04:39 +00:00
DrawPage
jsr SwitchToBank2
jsr DrawPageInternal
jmp SwitchToBank1
2019-10-09 17:04:39 +00:00
Draw40Chars
jsr SwitchToBank2
jsr Draw40CharsInternal
jmp SwitchToBank1
2019-10-09 17:04:39 +00:00
DrawCenteredString
jsr SwitchToBank2
jsr DrawCenteredStringInternal
jmp SwitchToBank1
2018-12-23 16:13:47 +00:00
2019-10-09 17:04:39 +00:00
DrawBuffer
jsr SwitchToBank2
jsr DrawBufferInternal
jmp SwitchToBank1