Prev: 41345 Up: Map Next: 41396
41386: Negate Word
Unused. Nothing in the game calls this routine.
Input
HL Word to negate
Output
HL #-HL
HL=-HL.
NegateWord 41386 PUSH DE Stash DE on the stack.
41387 EX DE,HL Switch the word into DE.
41388 LD HL,0 HL=0000.
41391 AND A HL=HL-DE.
41392 SBC HL,DE
41394 POP DE Restore DE from the stack.
41395 RET Return.
Prev: 41345 Up: Map Next: 41396