This subroutine finds the base address for each five-byte portion of the calculator's memory area to or from which a floating-point number is to be moved from or to the calculator stack. It does this operation by adding five times the parameter supplied to the base address for the area which is held in the HL register pair.
Note that when a FOR-NEXT variable is being handled then the pointers are changed so that the variable is treated as if it were the calculator's memory area.
|Copy the parameter to C.
|Double the parameter.
|Double the result.
|Add the value of the parameter to give five times the original value.
|This result is wanted in the BC register pair.
|Produce the new base address.