Prev: A379 Up: Map Next: A3A8
A39E: Negate HL
Used by the routine at DRAW_LINE.
Subtracts HL from zero, which is the shortest way the Z80 has of negating a sixteen-bit value.
NEGATE_HL A39E PUSH DE
A39F EX DE,HL
A3A0 LD HL,$0000
A3A3 AND A
A3A4 SBC HL,DE
A3A6 POP DE
A3A7 RET
Prev: A379 Up: Map Next: A3A8