This commit is contained in:
4am 2018-04-01 19:16:36 -04:00
parent 6081601a68
commit cc0d2510d2

View File

@ -233,6 +233,7 @@ PaintInfoView
+LDAY addrInfo +LDAY addrInfo
ldx #kInfoPaintWidth ldx #kInfoPaintWidth
phx
jsr MultiPrint jsr MultiPrint
jsr okvs_get ; get shortname of current game jsr okvs_get ; get shortname of current game
@ -249,14 +250,14 @@ PaintInfoView
!word gVersionsStore !word gVersionsStore
+ !word $FDFD ; SMC + !word $FDFD ; SMC
; A/Y contains address ; A/Y contains address
ldx #kInfoPaintWidth ; where to put the null (rest is padded with spaces) plx ; X = width a.k.a. where to put the null (rest is padded with spaces)
jsr CreateNullTerminatedString ; copies string to kNullTerminatedBuffer jsr CreateNullTerminatedString ; copies string to kNullTerminatedBuffer
+LDADDR kNullTerminatedBuffer ; now use that as the buffer to print the last line +LDADDR kNullTerminatedBuffer ; now use that as the buffer to print the last line
!byte $2C !byte $2C
; execution falls through here ; execution falls through here
MultiPrint MultiPrint
stz SAVE stz SAVE ; VTAB, but 0-indexed
stx .printLineLength+1 stx .printLineLength+1
+STAY SRC +STAY SRC
.printLoop .printLoop
@ -281,6 +282,9 @@ MultiPrint
lda (SRC) lda (SRC)
bne .printLoop bne .printLoop
rts rts
}
;------------------------------------------------------------------------------
kViewPrevious kViewPrevious
!byte ID_PREVIOUS ; view ID !byte ID_PREVIOUS ; view ID
@ -394,4 +398,3 @@ kViewDescription
!byte 8 ; visible height !byte 8 ; visible height
!byte 77 ; width !byte 77 ; width
!byte 39 ; height !byte 39 ; height
}