![]() |
Routines |
| Prev: 53629 | Up: Map | Next: 53661 |
|
Used by the routine at ProjectObject.
Converts a position along one axis of the map into the position in the view, which is the same unless the view is rotated, when the position is turned around.
|
||||||||||||||||
| ConvertPosition | 53646 | LD A,(48058) | Return if the view is not turned round. | |||||||||||||
| 53649 | AND 1 | |||||||||||||||
| 53651 | RET Z | |||||||||||||||
| 53652 | LD A,L | Turn the fraction round. | ||||||||||||||
| 53653 | CPL | |||||||||||||||
| 53654 | LD L,A | |||||||||||||||
| 53655 | LD A,H | Turn the tile round by subtracting it from 31. | ||||||||||||||
| 53656 | CPL | |||||||||||||||
| 53657 | AND 31 | |||||||||||||||
| 53659 | LD H,A | |||||||||||||||
| 53660 | RET | Return. | ||||||||||||||
|
View the equivalent code in;
|
||||||||||||||||
| Prev: 53629 | Up: Map | Next: 53661 |