![]() |
Routines |
| Prev: FC84 | Up: Map | Next: FC9D |
|
Used by the routine at Play_MenuMusicTick.
Advance a word cursor at HL, fetch the next stream byte, and treat 40 as an end marker (then jump to Reload_MusicStreamCursor to reload the cursor from the following word).
|
||||
| Read_MusicStreamByte | FC90 | LD E,(HL) | Fetch the low byte of the cursor word into E. | |
| FC91 | INC HL | Advance HL onto the high byte. | ||
| FC92 | LD D,(HL) | Fetch the high byte of the cursor word into D. | ||
| FC93 | INC DE | Advance the cursor value in DE by one. | ||
|
This entry point is used by the routine at Reload_MusicStreamCursor.
Fetch the byte at the stream cursor.
|
||||
| Read_MusicStreamByte_Fetch | FC94 | LD A,(DE) | Fetch the byte at the cursor. | |
| FC95 | CP $40 | Is it the end marker 40? | ||
| FC97 | JR Z,Reload_MusicStreamCursor | If so, jump to Reload_MusicStreamCursor to reload the cursor from the next word. | ||
| FC99 | LD (HL),D | Write the updated high byte back. | ||
| FC9A | DEC HL | Step HL back to the low byte. | ||
| FC9B | LD (HL),E | Write the updated low byte back. | ||
| FC9C | RET | Return. | ||
| Prev: FC84 | Up: Map | Next: FC9D |