![]() |
Routines |
| Prev: 8D5E | Up: Map | Next: 8D7D |
|
Used by the routine at 8B90.
|
||||||||
| 8D5F | LD A,($5C7C) | Get the Y co-ordinate. | ||||||
| 8D62 | SUB $10 | Convert it to an offset in the screen address buffer. | ||||||
| 8D64 | LD L,A | |||||||
| 8D65 | LD H,$00 | |||||||
| 8D67 | ADD HL,HL | |||||||
| 8D68 | LD DE,$EA60 | |||||||
| 8D6B | ADD HL,DE | |||||||
| 8D6C | LD A,(HL) | Put the screen address in HL. | ||||||
| 8D6D | INC HL | |||||||
| 8D6E | LD H,(HL) | |||||||
| 8D6F | LD L,A | |||||||
| 8D70 | LD D,$00 | Initialise D to add the X co-ordinate. | ||||||
| 8D72 | LD A,($5C7B) | Get the X co-ordinate. | ||||||
| 8D75 | AND $F8 | Convert to a screen offset and store it in E. | ||||||
| 8D77 | RRCA | |||||||
| 8D78 | RRCA | |||||||
| 8D79 | RRCA | |||||||
| 8D7A | LD E,A | |||||||
| 8D7B | ADD HL,DE | Put the screen address in HL and return. | ||||||
| 8D7C | RET | |||||||
| Prev: 8D5E | Up: Map | Next: 8D7D |