![]() |
Routines |
| Prev: 26936 | Up: Map | Next: 27013 |
|
Used by the routine at Highlight_Menu_Item.
Converts a menu index into an attribute address.
|
||||||||||||
| Menu_Attribute_Address | 26995 | ADD A,3 | Add 3 to the menu index. | |||||||||
| 26997 | LD H,A | Copy the menu index to H. | ||||||||||
| 26998 | LD L,0 | Clear the low byte of the address. | ||||||||||
| 27000 | SRL H | Divide the address by 4. | ||||||||||
| 27002 | RR L | |||||||||||
| 27004 | SRL H | |||||||||||
| 27006 | RR L | |||||||||||
| 27008 | LD DE,22536 | Set the attribute base to 22536 (attribute buffer) in DE. | ||||||||||
| 27011 | ADD HL,DE | Add the attribute base. | ||||||||||
| 27012 | RET | Return. | ||||||||||
| Prev: 26936 | Up: Map | Next: 27013 |