![]() |
Routines |
| Prev: 64644 | Up: Map | Next: 64669 |
|
Used by the routine at Play_MenuMusicTick.
Advance a word cursor at HL, fetch the next stream byte, and treat 64 as an end marker (then jump to Reload_MusicStreamCursor to reload the cursor from the following word).
|
||||
| Read_MusicStreamByte | 64656 | LD E,(HL) | Fetch the low byte of the cursor word into E. | |
| 64657 | INC HL | Advance HL onto the high byte. | ||
| 64658 | LD D,(HL) | Fetch the high byte of the cursor word into D. | ||
| 64659 | 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 | 64660 | LD A,(DE) | Fetch the byte at the cursor. | |
| 64661 | CP 64 | Is it the end marker 64? | ||
| 64663 | JR Z,Reload_MusicStreamCursor | If so, jump to Reload_MusicStreamCursor to reload the cursor from the next word. | ||
| 64665 | LD (HL),D | Write the updated high byte back. | ||
| 64666 | DEC HL | Step HL back to the low byte. | ||
| 64667 | LD (HL),E | Write the updated low byte back. | ||
| 64668 | RET | Return. | ||
| Prev: 64644 | Up: Map | Next: 64669 |