| Routines

3524: THE 'NUMBER AND NUMBER' OPERATION (offset +08)

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)
no_and_no | 3524 | EX DE,HL | Point HL at Y, DE at X.
| 3525 | CALL TEST_ZERO | Test whether Y is zero.
| 3528 | EX DE,HL | Swap the pointers back.
| 3529 | RET NC | Return with X as the 'last value' if Y was non-zero.
| 352A | AND A | Reset the carry flag and jump back to set the 'last value' to zero.
| 352B | JR FP_0_1