Prev: 63074 Up: Map Next: 63174
63146: Convert Coordinate
Used by the routines at JumpTable_ConvertCoordinate, Print_Clipped and Draw_Actor.
Converts a column/row pair into an offset.
Convert_Coordinate 63146 XOR A Clear A, D and L.
63147 LD D,A
63148 LD L,A
63149 LD A,24 A=24-B.
63151 SUB B
63152 SRL A Multiply the row by 32 into HL.
63154 RR L
63156 SRL A
63158 RR L
63160 SRL A
63162 RR L
63164 LD H,A
63165 LD A,33 E=33-C.
63167 SUB C
63168 LD E,A
63169 ADD HL,DE Add the column and write *Print_BufferOffset.
63170 LD (25618),HL
63173 RET Return.
View the equivalent code in Booty.
Prev: 63074 Up: Map Next: 63174