![]() |
Routines |
Prev: 26359 | Up: Map | Next: 26382 |
Used by the routines at 26707, Print_Asterisk, 26918, 27171, 28777, 28903, 29385, 30052, 30143, 30230, 31154 and Handler_Aliens.
Converts an attribute buffer address to its corresponding screen buffer address.
|
||||||||||||
ConvertAttributeToScreenBufferAddress | 26372 | LD A,H | Copy the screen address high byte to A. | |||||||||
26373 | SUB 88 | Subtract 88 (start of attribute area offset). | ||||||||||
26375 | ADD A,A | Multiply by 8. | ||||||||||
26376 | ADD A,A | |||||||||||
26377 | ADD A,A | |||||||||||
26378 | ADD A,64 | Add 64 to set the base attribute area. | ||||||||||
26380 | LD H,A | Update the high byte of the address. | ||||||||||
26381 | RET | Return. |
Prev: 26359 | Up: Map | Next: 26382 |