![]() |
Routines |
| Prev: D17D | Up: Map | Next: D19D |
|
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 | D18E | LD A,($BBBA) | Return if the view is not turned round. | |||||||||||||
| D191 | AND $01 | |||||||||||||||
| D193 | RET Z | |||||||||||||||
| D194 | LD A,L | Turn the fraction round. | ||||||||||||||
| D195 | CPL | |||||||||||||||
| D196 | LD L,A | |||||||||||||||
| D197 | LD A,H | Turn the tile round by subtracting it from 1F. | ||||||||||||||
| D198 | CPL | |||||||||||||||
| D199 | AND $1F | |||||||||||||||
| D19B | LD H,A | |||||||||||||||
| D19C | RET | Return. | ||||||||||||||
|
View the equivalent code in;
|
||||||||||||||||
| Prev: D17D | Up: Map | Next: D19D |