diff --git a/5/addresses_SNES_PSX.tsv b/5/addresses_SNES_PSX.tsv index 734e65d..1691e16 100644 --- a/5/addresses_SNES_PSX.tsv +++ b/5/addresses_SNES_PSX.tsv @@ -15,7 +15,7 @@ sfx_brr_data 0x041E41 270 of u8 Use the below SPC pointers bytelength_sfx_brr_pointers 0x041F4F u16 Used by the memcpy routine that copies the below data to the SPC (0x0020 = 32 bytes) sfx_brr_pointers 0x041F51 8 of 2 of u16 SPC memory addresses not ROM. Start address followed by loop address. bytelength_sfx_adsrs 0x041F71 u16 0x0010 = 16 bytes -sfx_adsrs 0x041F73 8 of 4 of u4 +sfx_adsrs 0x041F73 8 of ADSR bytelength_sfx_samplerates 0x041F83 u16 0x0010 = 16 bytes sfx_samplerates 0x041F85 8 of u16 bytelength_sfx_data 0x041F95 u16 0x1C00 = 7168 bytes @@ -25,7 +25,7 @@ bgm_song_pointers 0x043B97 72 of u24 bgm_instrument_brr_pointers 0x043C6F 35 of u24 bgm_instrument_loop_starts 0x043CD8 35 of u16 bgm_instrument_samplerates 0x043D1E 35 of u16 -bgm_instrument_adsrs 0x043D64 35 of 4 of u4 +bgm_instrument_adsrs 0x043D64 35 of ADSR bgm_instrument_indices 0x043DAA 72 of 16 of u16 length 0x900 worldmap_compressed_tilesets 0x070000 tilesets 0 up to 0x434 diff --git a/structs_SNES_stubs.tsv b/structs_SNES_stubs.tsv index e26faa1..96132c8 100644 --- a/structs_SNES_stubs.tsv +++ b/structs_SNES_stubs.tsv @@ -24,3 +24,10 @@ u5 r5 u5 g5 u5 b5 u1 0 + +struct ADSR +u4 attack_rate +u3 decay_rate +u1 enabled +u5 sustain_rate +u3 sustain_level