HP 9835A Programming Manual page 117

35 series desktop computer assembly development rom
Table of Contents

Advertisement

100
Arithmetic
• Values passed must make sense for the routine or function being called (e.g., Oper_ 2
should not point to a value of 0 when calling the division routine), or else an error results.
• The storage areas for the operands and the result must reside either in the ICOM region or
in the Base_page register. Specifically, they cannot be specified as Ar1 or Ar2.
Calling Procedure:
1. Assure that Oper _1, Oper _2, and Result contain the proper addresses as above.
2. Load register A with the number of parameters required for the routine or function (see
the table on next page). Note that some routines require this number to be com-
plemented.
3. Load register B with the execution address of the routine or function (see the table on
the next page).
4. Call the utility.
Exit Conditions:
• The result is placed into the 4 words starting at the address pOinted to by the Result
register.
• Register A contains 0
if
no error is encountered during execution of the utility.
• Register A contains the error number should an error be encountered during execution of
the utility.

Advertisement

Table of Contents
loading

Table of Contents