From 6a3f4e8f96a1d3c4300337286b751a7fa0cd291e Mon Sep 17 00:00:00 2001 From: 4am Date: Sat, 3 Feb 2018 12:01:34 -0500 Subject: [PATCH] . --- src/config.a | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/config.a b/src/config.a index a8313b5..d4e8f5d 100644 --- a/src/config.a +++ b/src/config.a @@ -1,4 +1,9 @@ +gCurrentGame = 22 + kNumberOfGames = 25 +kInfoFilename + !byte 5 + !raw "/INFO" directories !word .ballyhoo @@ -101,3 +106,40 @@ directories .zorkiii !byte 8 !raw "ZORK.III" + +LoadGameInfo + lda gCurrentGameInfo + asl + tax + lda directories,x + sta $00 + lda directories+1,x + sta $01 + ldx #$02 + jsr addToPath + lda #kInfoFilename + sta $01 + jsr addToPath + lda LoadFile1Shot + !word .path + !word $0800 + !word $1400 + !word $1C00 + rts + +addToPath + ldy #$00 + lda ($00),y + tay +- lda ($00),y + sta .path,x + inx + dey + bne - + stx .path + rts +.path + !byte $FF ; set at runtime + !raw "Z/.............../...."