Prev: A83F Up: Map Next: A893
A86E: Routine at A86E
Used by the routines at A83F and DrawRoom.
A86E LD A,$18 DE=(18-B)*20.
A870 SUB B
A871 LD E,A
A872 LD D,$00
A874 SLA E
A876 RL D
A878 SLA E
A87A RL D
A87C SLA E
A87E RL D
A880 SLA E
A882 RL D
A884 SLA E
A886 RL D
A888 LD A,$21 HL=21-C.
A88A SUB C
A88B LD L,A
A88C LD H,$00
A88E ADD HL,DE HL+=DE.
A88F LD ($BAD5),HL Write HL to *BufferPointer.
A892 RET Return.
Prev: A83F Up: Map Next: A893