Prev: 47946 Up: Map Next: 48018
47989: Set parameters (for cheat / debug routine sound) and play
Used by the routine at 64836.
47989 LD HL,1222 Load HL with bytecodes for instruction ADD A,4
47992 LD DE,0 Load D with 0 and E with 0
47995 CALL 48018 Load A with current border colour
47998 LD (48010),HL Set instruction at 48010 to ADD A,4 (opcodes in HL)
48001 OUT (254),A Set current border colour and reset speaker state
48003 XOR 16 Flip "speaker" bit
48005 LD B,E Copy E into B
48006 DJNZ 48006 Delay for period determined by B
48008 EX AF,AF' Switch AF and AF'
48009 LD A,E Copy E into A
48010 XOR 128 Change E (delay constant)...
48012 LD E,A ...
48013 EX AF,AF' Switch AF and AF' again
48014 DEC D Decrease D (initially zero)...
48015 JR NZ,48001 ...and repeat loop (256 times)
48017 RET Return
Prev: 47946 Up: Map Next: 48018