![]() |
Routines |
| Prev: A851 | Up: Map | Next: A86F |
|
Used by the routines at ProcessRevealLine, CopyRevealLine, MainMenu_ColourDartPointer, ClearDartPointerAttributes and FillAttributeBlock.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example inputs/ outputs:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| CalculateAttributeBuffer | A862 | LD A,L | Store the X position in A for now. | |||||||||||||||||||||||||||||||||||||||||||||||||
| A863 | LD L,H | Move the Y position into L. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| A864 | LD H,$03 | Set the high byte of HL to 03. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| A866 | ADD HL,HL | Multiply HL by 04. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| A867 | ADD HL,HL | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Small correction.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| A868 | DEC H | Decrease H by one. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| A869 | ADD HL,HL | Multiply HL by 08. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| A86A | ADD HL,HL | |||||||||||||||||||||||||||||||||||||||||||||||||||
| A86B | ADD HL,HL | |||||||||||||||||||||||||||||||||||||||||||||||||||
| A86C | ADD A,L | Add the original X position for the low byte of the attribute buffer memory location. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| A86D | LD L,A | |||||||||||||||||||||||||||||||||||||||||||||||||||
| A86E | RET | Return. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Prev: A851 | Up: Map | Next: A86F |