|  | Routines | 
| Prev: 43089 | Up: Map | Next: 43119 | 
| 
Used by the routines at ProcessRevealLine, CopyRevealLine, MainMenu_ColourDartPointer, ClearDartPointerAttributes and FillAttributeBlock.
 
 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
Example inputs/ outputs:  
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| CalculateAttributeBuffer | 43106 | LD A,L | Store the X position in A for now. | |||||||||||||||||||||||||||||||||||||||||||||||||
| 43107 | LD L,H | Move the Y position into L. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 43108 | LD H,3 | Set the high byte of HL to 3. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 43110 | ADD HL,HL | Multiply HL by 4. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 43111 | ADD HL,HL | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 
Small correction.
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43112 | DEC H | Decrease H by one. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 43113 | ADD HL,HL | Multiply HL by 8. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 43114 | ADD HL,HL | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 43115 | ADD HL,HL | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 43116 | ADD A,L | Add the original X position for the low byte of the attribute buffer memory location. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 43117 | LD L,A | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 43118 | RET | Return. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Prev: 43089 | Up: Map | Next: 43119 |