Jump to content

Professor Oak's lab music glitch: Difference between revisions

m
Text replacement - "~" to "–"
>Bbbbbbbbba
(→‎Triggering mechanism: Why not in normal overworld map transitions)
m (Text replacement - "~" to "–")
 
(One intermediate revision by one other user not shown)
Line 13:
* All relevant memory addresses are set to 0x00, 0x01, or 0xff, as appropriate. (This includes the aforementioned default tempo, 0x0100.)
* For each channel:
** The sound ID for that channel (wChannelSoundIDs, 8 bytes, $C026~C026–$C02D) is set to the ID of the music.
** The command pointer for that channel (wChannelCommandPointers, 8 pointers of 2 byte each, $C006~C006–$C015) is set to the beginning of the audio commands for that channel.
If the V-Blank interrupt occurs between setting the sound ID and setting the command pointer, it will try to play the music (because the sound ID is nonzero), but will execute the command from $0000 instead of the correct command pointer. That address is at the beginning of the ROM and contains the value 0xFF, which is interpreted as an "end channel" command. This sets the sound ID for the channel back to zero.
 
Line 22:
 
==YouTube videos==
{{YoutubeYouTube|pjS8gt_5Urg|ChickasaurusGL}}
(@1:34; Ch0 glitched out)
{{YoutubeYouTube|dmq5_y343Js7MI_s3xcE-c|gifvex}}
(@1:1618; Ch1 glitched out; notice that some notes are masked out by the text box jingles, which also play in Ch0)
 
[[Category:Generation I glitches]][[Category:Music glitches]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.