| Routines

13225: 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 | 5
TEST_5_SP | 13225 | PUSH DE | Save DE briefly.
| 13226 | PUSH HL | Save HL briefly.
| 13227 | LD BC,5 | Specify the test is for 5 bytes.
| 13230 | CALL TEST_ROOM | Make the test.
| 13233 | POP HL | Restore HL.
| 13234 | POP DE | Restore DE.
| 13235 | RET | Finished.