![]() |
Routines |
| Prev: F536 | Up: Map | Next: F54A |
|
Used by the routine at Drawing.
Moves the attribute address one byte right. A high byte of 5A means it passed the end of the attribute file.
|
||||
| AttributeRight | F540 | PUSH AF | Step to the next attribute. | |
| F541 | INC HL | |||
| F542 | LD A,H | Skip the correction unless the pointer has gone past the end of the attribute file (high byte 5A). | ||
| F543 | CP $5A | |||
| F545 | JR NZ,AttributeRight_Next | |||
| F547 | DEC HL | Undo the step that passed the right edge. | ||
| AttributeRight_Next | F548 | POP AF | Restore the colour from the stack. | |
| F549 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: F536 | Up: Map | Next: F54A |