mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-17 07:31:19 +00:00
combine DrawGameTitleInActionSlideshowHGR code
This commit is contained in:
parent
3d816934af
commit
5fecf8bde9
@ -91,15 +91,13 @@ ResetVector ; 6 bytes, copied to $100
|
|||||||
!source "src/ui.credits.a" ; \__ execution falls through
|
!source "src/ui.credits.a" ; \__ execution falls through
|
||||||
!source "src/ui.browse.mode.a" ; /
|
!source "src/ui.browse.mode.a" ; /
|
||||||
|
|
||||||
!source "src/ui.attract.hgr.a" ; \__ execution falls through
|
!source "src/ui.attract.hgr.a"
|
||||||
!source "src/ui.font.a" ; /
|
!source "src/ui.font.a"
|
||||||
|
|
||||||
!source "src/ui.overlay.a"
|
!source "src/ui.overlay.a"
|
||||||
!source "src/ui.offscreen.a"
|
!source "src/ui.offscreen.a"
|
||||||
!source "src/ui.attract.mode.a"
|
!source "src/ui.attract.mode.a"
|
||||||
!source "src/ui.attract.shr.a"
|
!source "src/ui.attract.shr.a"
|
||||||
!source "src/ui.attract.gr.a"
|
!source "src/ui.attract.gr.a"
|
||||||
|
|
||||||
!source "src/ui.cheats.a"
|
!source "src/ui.cheats.a"
|
||||||
!source "src/glue.launch.a"
|
!source "src/glue.launch.a"
|
||||||
!source "src/okvs.a"
|
!source "src/okvs.a"
|
||||||
|
@ -205,6 +205,12 @@ DHGRActionCallback
|
|||||||
!word kDHGRActionDirectory
|
!word kDHGRActionDirectory
|
||||||
+ !word $FDFD
|
+ !word $FDFD
|
||||||
|
|
||||||
|
lda #$EA ; NOP
|
||||||
|
+HIDE_NEXT_2_BYTES
|
||||||
|
DrawGameTitleInActionSlideshowHGR
|
||||||
|
lda #$60 ; RTS
|
||||||
|
sta @fallThroughForDHGR
|
||||||
|
|
||||||
; display game name in the bottom-left corner
|
; display game name in the bottom-left corner
|
||||||
lda #22
|
lda #22
|
||||||
sta VTAB
|
sta VTAB
|
||||||
@ -245,10 +251,11 @@ DHGRActionCallback
|
|||||||
+LDADDR gPathname
|
+LDADDR gPathname
|
||||||
sec
|
sec
|
||||||
jsr DrawString
|
jsr DrawString
|
||||||
;RedrawForDHGR
|
|
||||||
jsr SwitchToBank2
|
|
||||||
pla
|
pla
|
||||||
|
@fallThroughForDHGR
|
||||||
|
nop ; SMC
|
||||||
sta HTAB
|
sta HTAB
|
||||||
|
jsr SwitchToBank2
|
||||||
ldx gPathname
|
ldx gPathname
|
||||||
dex
|
dex
|
||||||
|
|
||||||
|
@ -158,41 +158,4 @@ HGRActionCallback
|
|||||||
+ !word $FDFD ; SMC
|
+ !word $FDFD ; SMC
|
||||||
!word $4000
|
!word $4000
|
||||||
|
|
||||||
; display game name in the bottom-left corner
|
jmp DrawGameTitleInActionSlideshowHGR
|
||||||
lda #22
|
|
||||||
sta VTAB
|
|
||||||
lda #0 ; solid horizontal bar character
|
|
||||||
jsr @resetline
|
|
||||||
lda (SAVE),y ; (SAVE) -> game title, Y = 0, so A = title length
|
|
||||||
clc
|
|
||||||
adc #$03
|
|
||||||
sta gPathname
|
|
||||||
lda #7 ; top-right rounded corner character
|
|
||||||
jsr @drawline
|
|
||||||
|
|
||||||
inc VTAB
|
|
||||||
lda #" "
|
|
||||||
jsr @resetline
|
|
||||||
lda (SAVE),y ; A = title length
|
|
||||||
tay
|
|
||||||
- lda (SAVE),y
|
|
||||||
sta gPathname+1,y
|
|
||||||
dey
|
|
||||||
bne -
|
|
||||||
lda #3 ; solid vertical bar character
|
|
||||||
jsr @drawline
|
|
||||||
|
|
||||||
jmp ExecuteTransitionAt6000AndWait
|
|
||||||
@resetline
|
|
||||||
ldy #40
|
|
||||||
- sta gPathname,y
|
|
||||||
dey
|
|
||||||
bne -
|
|
||||||
sty HTAB
|
|
||||||
rts
|
|
||||||
@drawline
|
|
||||||
ldy gPathname
|
|
||||||
sta gPathname,y
|
|
||||||
+LDADDR gPathname
|
|
||||||
sec
|
|
||||||
; /!\ execution falls through to ui.font/DrawString
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user