Prev: 13595 Up: Map Next: 13613
13604: THE 'NUMBER AND NUMBER' OPERATION (offset 8)
The address of this routine is found in the table of addresses. It is called indirectly via fp_calc_2.
This subroutine performs the binary operation 'X AND Y' and returns X if Y is non-zero and the value zero otherwise.
Input
DE Address of the first byte of the second number (Y)
HL Address of the first byte of the first number (X)
Output
no_and_no 13604 EX DE,HL Point HL at Y, DE at X.
13605 CALL TEST_ZERO Test whether Y is zero.
13608 EX DE,HL Swap the pointers back.
13609 RET NC Return with X as the 'last value' if Y was non-zero.
13610 AND A Reset the carry flag and jump back to set the 'last value' to zero.
13611 JR FP_0_1
Prev: 13595 Up: Map Next: 13613