From 00eab0a30754389f6e6513100624cf9150c7f1cd Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Sun, 19 Apr 2020 21:42:37 -0700 Subject: [PATCH] tetris-PRG.info: Define some variables from the sound engine --- tetris-PRG.info | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tetris-PRG.info b/tetris-PRG.info index 037dbc4..70fecb7 100644 --- a/tetris-PRG.info +++ b/tetris-PRG.info @@ -138,6 +138,7 @@ LABEL { ADDR $00E2; NAME "AUDIOTMP3"; }; LABEL { ADDR $00E3; NAME "AUDIOTMP4"; }; LABEL { ADDR $00E4; NAME "AUDIOTMP5"; }; LABEL { ADDR $00E6; NAME "musicChanTmpAddr"; SIZE 2; }; +LABEL { ADDR $00EB; NAME "soundRngSeed"; SIZE 2; COMMENT "Set, but not read"; }; LABEL { ADDR $00ED; NAME "currentSoundEffectSlot"; COMMENT "Temporary"; }; LABEL { ADDR $00EE; NAME "musicChannelOffset"; COMMENT "Temporary. Added to $4000-3 for MMIO"; }; LABEL { ADDR $00EF; NAME "currentAudioSlot"; COMMENT "Temporary"; }; @@ -178,6 +179,7 @@ LABEL { ADDR $06B4; NAME "musicChanNoteDurationRemaining"; SIZE $04; }; LABEL { ADDR $06B8; NAME "musicChanNoteDuration"; SIZE $04; }; LABEL { ADDR $06BC; NAME "musicChanProgLoopCounter"; SIZE $04; COMMENT "As driven by bytecode instructions"; }; LABEL { ADDR $06C0; NAME "musicStagingSq1Sweep"; SIZE $02; COMMENT "Used as if size 4, but since Tri/Noise does nothing when written for sweep, the other two entries can have any value without changing behavior"; }; +LABEL { ADDR $06C3; NAME "musicChanNote"; SIZE $04; }; LABEL { ADDR $06C8; NAME "musicChanInhibit"; SIZE $03; COMMENT "Always zero"; }; LABEL { ADDR $06CC; NAME "musicTrack_dec"; COMMENT "$00-$09"; }; LABEL { ADDR $06CD; NAME "musicChanVolFrameCounter"; SIZE $04; COMMENT "Pos 0/1 are unused"; }; @@ -208,6 +210,7 @@ LABEL { ADDR $06FA; NAME "soundEffectSlot2Playing"; }; LABEL { ADDR $06FB; NAME "soundEffectSlot3Playing"; }; LABEL { ADDR $06FC; NAME "soundEffectSlot4Playing"; }; LABEL { ADDR $06FD; NAME "currentlyPlayingMusicTrack"; COMMENT "Copied from musicTrack"; }; +LABEL { ADDR $06FF; NAME "unreferenced_soundRngTmp"; }; LABEL { ADDR $0700; NAME "highScoreNames"; SIZE $30; }; LABEL { ADDR $0730; NAME "highScoreScoresA"; SIZE $C; }; LABEL { ADDR $073C; NAME "highScoreScoresB"; SIZE $C; }; @@ -929,7 +932,7 @@ LABEL { ADDR $AA8A; NAME "copyCurrentScrollAndCtrlToPPU"; }; LABEL { ADDR $AA98; NAME "bulkCopyToPpu"; }; LABEL { ADDR $AAF2; NAME "copyToPpu"; COMMENT "Address to read from stored in tmp1/2"; }; LABEL { ADDR $AB21; NAME "copyAddrAtReturnAddressToTmp_incrReturnAddrBy2"; }; -LABEL { ADDR $AB47; NAME "generateNextPseudorandomNumber"; }; # canon +LABEL { ADDR $AB47; NAME "generateNextPseudorandomNumber"; COMMENT "reg x: zeropage addr of seed; reg y: size of seed"; }; # canon LABEL { ADDR $AB57; NAME "@updateNextByteInSeed"; }; LABEL { ADDR $AB5E; NAME "copyOamStagingToOam"; COMMENT "canon is initializeOAM"; }; LABEL { ADDR $AB69; NAME "pollController_actualRead"; }; @@ -963,7 +966,8 @@ LABEL { ADDR $E072; NAME "computeSoundEffMethod"; COMMENT "input a: index-1 into LABEL { ADDR $E07B; NAME "@whileYNot2TimesA"; }; LABEL { ADDR $E08E; NAME "@ret"; }; LABEL { ADDR $E092; NAME "@copyAddr"; }; -LABEL { ADDR $E09E; NAME "unreferenced_code1"; }; +LABEL { ADDR $E09E; NAME "unreferenced_soundRng"; }; +LABEL { ADDR $E0B0; NAME "@insertRandomBit"; }; LABEL { ADDR $E0B5; NAME "advanceAudioSlotFrame"; COMMENT "Z=0 when returned means disabled"; }; LABEL { ADDR $E0C7; NAME "@ret"; }; LABEL { ADDR $E194; NAME "updateSoundEffectSlot2"; };