| Ant Attack | Routines |
| Prev: 8B46 | Up: Map | Next: 8B60 |
|
Used by the routines at RUN_SCRIPT and HANDLE_EVENTS.
|
||||||||
| NOISE | 8B4A | LD A,(BORDER) | The border colour, with the MIC and speaker bits set. | |||||
| 8B4D | AND $07 | |||||||
| 8B4F | OR $18 | |||||||
| 8B51 | LD C,A | |||||||
| NOISE_0 | 8B52 | CALL RANDOM | A random speaker bit, each time round: bit 4 of what RANDOM leaves in A. | |||||
| 8B55 | AND $10 | |||||||
| 8B57 | XOR C | |||||||
| 8B58 | OUT ($FE),A | |||||||
| 8B5A | DJNZ NOISE_0 | |||||||
| 8B5C | LD A,C | The border colour again, with the speaker bit set: unlike TONE, a burst leaves the speaker on. | ||||||
| 8B5D | OUT ($FE),A | |||||||
| 8B5F | RET | |||||||
| Prev: 8B46 | Up: Map | Next: 8B60 |