Routines |
Prev: 35782 | Up: Map | Next: 35819 |
Used by the routine at 55768.
|
||||
35790 | LD HL,1222 | Load HL with bytecodes for instruction ADD A,4 | ||
35793 | LD DE,0 | Load D with 0 and E with 0 | ||
This entry point is used by the routine at 35782.
|
||||
35796 | CALL 35819 | Load A with current border colour | ||
35799 | LD (35811),HL | Set instruction at 35811 to ADD A,4 or ADD A,32 depending upon value in HL | ||
35802 | OUT (254),A | Set current border colour and reset speaker state | ||
35804 | XOR 16 | Flip "speaker" bit | ||
35806 | LD B,E | Copy E into B | ||
35807 | DJNZ 35807 | Delay for period determined by B | ||
35809 | EX AF,AF' | Switch AF and AF' | ||
35810 | LD A,E | Copy E into A | ||
35811 | XOR 128 | Change E (delay constant)... | ||
35813 | LD E,A | ... | ||
35814 | EX AF,AF' | Switch AF and AF' again | ||
35815 | DEC D | Decrease D (initially zero)... | ||
35816 | JR NZ,35802 | ...and repeat loop (256 times) | ||
35818 | RET | Return |
Prev: 35782 | Up: Map | Next: 35819 |