![]() |
Routines |
| Prev: 0E44 | Up: Map | Next: 0E9B |
|
This subroutine has two separate functions.
|
||||||||||||||||||
| CL_ATTR | 0E88 | LD A,H | Fetch the high byte. | |||||||||||||||
| 0E89 | RRCA | Multiply this value by thirty two. | ||||||||||||||||
| 0E8A | RRCA | |||||||||||||||||
| 0E8B | RRCA | |||||||||||||||||
| 0E8C | DEC A | Go back to the 'eight' line. | ||||||||||||||||
| 0E8D | OR $50 | Address the attribute area. | ||||||||||||||||
| 0E8F | LD H,A | Restore to the high byte and transfer the address to DE. | ||||||||||||||||
| 0E90 | EX DE,HL | |||||||||||||||||
| 0E91 | LD H,C | This is always zero. | ||||||||||||||||
| 0E92 | LD L,B | The line number. | ||||||||||||||||
| 0E93 | ADD HL,HL | Multiply by thirty two. | ||||||||||||||||
| 0E94 | ADD HL,HL | |||||||||||||||||
| 0E95 | ADD HL,HL | |||||||||||||||||
| 0E96 | ADD HL,HL | |||||||||||||||||
| 0E97 | ADD HL,HL | |||||||||||||||||
| 0E98 | LD B,H | Move the result to the BC register pair before returning. | ||||||||||||||||
| 0E99 | LD C,L | |||||||||||||||||
| 0E9A | RET | |||||||||||||||||
| Prev: 0E44 | Up: Map | Next: 0E9B |