Prev: 8214 Up: Map Next: 8309
82DC: Print the current level as a dot on screen
Used by the routine at 712D.
Input
D Y co-ordinate
E X co-ordinate
82DC PUSH DE
82DD LD A,D
82DE AND $C0
82E0 SRL A
82E2 SRL A
82E4 SRL A
82E6 ADD A,$40
82E8 LD H,A
82E9 LD A,D
82EA AND $07
82EC ADD A,H
82ED LD H,A
82EE SRL E
82F0 SRL E
82F2 SRL E
82F4 LD A,D
82F5 AND $38
82F7 SLA A
82F9 SLA A
82FB ADD A,E
82FC LD L,A
82FD POP DE
82FE LD A,E
82FF AND $07
8301 LD DE,$8309
8304 ADD A,E
8305 LD E,A
8306 LD A,(DE)
8307 LD (HL),A
8308 RET
Prev: 8214 Up: Map Next: 8309