Routines |
Prev: 6099 | Up: Map | Next: 60FB |
Used by the routine at HandlerAccelerate.
|
||||
SoundsBounce | 60E3 | LD HL,$0000 | HL=0000. | |
60E6 | LD C,$08 | C=08. | ||
SoundsBounce_Loop | 60E8 | LD E,$04 | E=04. | |
60EA | LD A,(HL) | A=the byte pointed to by HL. | ||
60EB | INC HL | Increment HL by one. | ||
60EC | AND %01111111 | Keep only bits 0-6. | ||
60EE | OR %10000000 | Set bit 7. | ||
60F0 | LD D,A | Store the result in D. | ||
SoundsBounce_Play | 60F1 | CALL PlaySquareWave | Call PlaySquareWave. | |
60F4 | DEC E | Decrease E by one. | ||
60F5 | JR NZ,SoundsBounce_Play | If E is not zero, jump to SoundsBounce_Play. | ||
60F7 | DEC C | Decrease C by one. | ||
60F8 | JR NZ,SoundsBounce_Loop | If C is not zero, jump to SoundsBounce_Loop. | ||
60FA | RET | Return. |
Prev: 6099 | Up: Map | Next: 60FB |