| Routines

33A9: THE 'TEST 5-SPACES' SUBROUTINE

Used by the routines at STK_ST_0, duplicate and stk_data. This subroutine tests whether there is sufficient room in memory for another 5-byte floating-point number to be added to the calculator stack.
Output
BC | +0005
TEST_5_SP | 33A9 | PUSH DE | Save DE briefly.
| 33AA | PUSH HL | Save HL briefly.
| 33AB | LD BC,$0005 | Specify the test is for 5 bytes.
| 33AE | CALL TEST_ROOM | Make the test.
| 33B1 | POP HL | Restore HL.
| 33B2 | POP DE | Restore DE.
| 33B3 | RET | Finished.