Prev: 26587 Up: Map Next: 26607
26596: MINUS action .
HL pointer to flag
ACTION_MINUS 26596 INC BC BC points to value to subtract
26597 LD A,(BC) A=value to subtract
26598 LD D,A D=value to subtract
26599 LD A,(HL) A=current value of flag
26600 SUB D Subtract D from this
26601 JR NC,ACTION_MINUS_0 If result has not overflowed, set flag to new value and do next action
26603 XOR A If result has overflowed, set result to 0
This entry point is used by the routine at ACTION_PLUS.
ACTION_MINUS_0 26604 LD (HL),A Store result in flag
26605 JR ACTION_CLEAR_0 Next action
Prev: 26587 Up: Map Next: 26607