Routines |
Prev: 43182 | Up: Map | Next: 43212 |
Used by the routines at ProcessRevealLine, CopyRevealLine, 42155, 42196, 42326, 42360, 42868 and CopyFloatingHandToDartboard.
|
||||||||||||||
CalculateDartBoardAddress | 43197 | LD A,%00000111 | Mask out the bottom 3 bits of the Y position. | |||||||||||
43199 | AND D | |||||||||||||
43200 | RRCA | Rotate the bits right three positions. | ||||||||||||
43201 | RRCA | |||||||||||||
43202 | RRCA | |||||||||||||
43203 | OR E | Combine with the X position. | ||||||||||||
43204 | LD L,A | L=low byte of the dart board buffer address. | ||||||||||||
43205 | LD A,D | Mask out bits 3-4 of the Y position. | ||||||||||||
43206 | AND %00011000 | |||||||||||||
43208 | OR %01100000 | Add the dart board buffer memory base address (24576). | ||||||||||||
43210 | LD H,A | H=high byte of the dart board buffer address. | ||||||||||||
43211 | RET | Return. |
Prev: 43182 | Up: Map | Next: 43212 |