| Routines

12947: THE 'RE-STACK TWO' SUBROUTINE

Used by the routines at addition, multiply and division. This subroutine is called to re-stack two 'small integers' in full five-byte floating-point form for the binary operations of addition, multiplication and division. It does so by calling the following subroutine twice.
Input
DE | Address of the first byte of the second number
HL | Address of the first byte of the first number
RE_ST_TWO | 12947 | CALL RESTK_SUB | Call the subroutine and then continue into it for the second call.
RESTK_SUB | 12950 | EX DE,HL | Exchange the pointers at each call.
This routine continues into re_stack.