This commit is contained in:
4am 2019-06-30 15:10:09 -04:00
parent 6ae4602278
commit e01d66b46d
6 changed files with 20 additions and 46 deletions

View File

@ -81,8 +81,14 @@ RestoreStackNextTime
!source "src/ui.common.a"
MachineStatus
!byte 0
gAttractModeStore
gFXStore
gDFXStore
!word $6000
gSlideshowStore
!word $0800
gGlobalPrefsStore
!word $D000 ; address of first okvs store
!word $D000
gGamesListStore
!word $FDFD ; SMC
!word Reenter ; NMI vector ($FFFA-B)

View File

@ -107,7 +107,7 @@ OneTimeSetup
+LDAY SRC ; (SRC) points to free space after the OKVS data structure we just created
+STAY gGamesListStore ; save pointer to free space for next store
+LDADDR kGameListConfFile
+LDADDR @kGameListConfFile
jsr SetPath
jsr LoadFile ; load games list file into $8000
@ -125,9 +125,9 @@ OneTimeSetup
pha
@inner
lda SAVE
cmp kPowersOfTen,y
cmp @kPowersOfTen,y
bcc @digitDone
sbc kPowersOfTen,y
sbc @kPowersOfTen,y
sta SAVE
lda SAVE+1
sbc #0
@ -159,13 +159,13 @@ OneTimeSetup
bit CLEARKBD
jmp ($FFFC) ; continue from |Reentry| in LC RAM bank
jmp $100 ; will jump to |Reentry| in LC RAM bank
kGameListConfFile
@kGameListConfFile
!byte 10
!text "GAMES.CONF"
kPowersOfTen
@kPowersOfTen
!byte 100
!byte 10
!byte 1

View File

@ -126,7 +126,7 @@
; does not set page 1 or 2
!macro HGR_MODE {
lda $C057
lda $C052
lda $C050
bit $C057
bit $C052
bit $C050
}

View File

@ -5,22 +5,8 @@
;
; Public functions:
; - ParseKeyValueList
; - IncAndGetChar
;
; Public variables:
; - gAttractModeStore
; - gFXStore
; - gDFXStore
; - gSlideshowStore
;
gAttractModeStore
!word $6000
gFXStore
!word $6000
gDFXStore
!word $6000
gSlideshowStore
!word $0800
;------------------------------------------------------------------------------
; ParseKeyValueList

View File

@ -6,9 +6,6 @@
; Public functions
; - SaveGlobalPreferences
;
; Public variables
; - gGlobalPrefsStore word address of prefs okvs
;
; Public constants (all length-prefixed strings)
; - kGlobalPrefsFilename
; - kLastPlayed
@ -114,7 +111,7 @@ SaveGlobalPreferences
!raw "="
@kLF !byte 1,$0D
@kFluff1 !byte @kFluff2-*-1
!raw "# 4cade preferences file",$0D
!raw "# Total Replay preferences file",$0D
!raw "# Do not edit by hand.",$0D
!raw "# Or do. I'm a comment, not a cop.",$0D
!byte $0D

View File

@ -71,24 +71,9 @@ TextRankCallback
+STAY zpstring ; A/Y = address of this title
+LDADDR InputLength
+STAY zpword
ldy #0 ; first we'll check for an exact match
lda (zpstring),y ; check length of this title against the input buffer
ldy #0
lda (zpstring),y
sta gamelength
; cmp InputLength
; bne + ; not equal, so can't be an exact match
; tay ; check for exact match
;- lda (zpword),y
; cmp (zpstring),y
; bne + ; nope, not an exact match
; dey
; bne -
; inc MatchCount
; lda #100 ; maximum possible score
; sta BestMatchScore
; ldx @tmpx ; save this game as the best match
; stx BestMatchIndex
; rts
;+
lda #0
sta runningscore
sta runningscore+1