![]() |
Routines |
| Prev: EE02 | Up: Map | Next: EE1D |
|
Used by the routines at Initialise_Display_And_Border and Adjust_Score_Field_Cursor.
Looks up a character index in the word table at 4600 to find its pixel row address, then converts that address to the corresponding attribute cell in the range 5800-5BFF by shifting the screen row right by 3 and combining with 58. Called by Adjust_Score_Field_Cursor to position score entry highlight attributes.
|
||||||||
| Calculate_Attr_Cell_Address | EE0B | LD H,$46 | Look up the character index in the word table at 4600 and load the pixel row address into HL. | |||||
| EE0D | LD L,A | |||||||
| EE0E | ADD HL,HL | |||||||
| EE0F | LD E,(HL) | |||||||
| EE10 | INC HL | |||||||
| EE11 | LD D,(HL) | |||||||
| EE12 | EX DE,HL | |||||||
| EE13 | LD A,H | Convert the pixel row address to the attribute cell address in the range 5800-5BFF. | ||||||
| EE14 | RRCA | |||||||
| EE15 | RRCA | |||||||
| EE16 | RRCA | |||||||
| EE17 | AND $03 | |||||||
| EE19 | OR $58 | |||||||
| EE1B | LD H,A | |||||||
| EE1C | RET | Return. | ||||||
| Prev: EE02 | Up: Map | Next: EE1D |