Iadr - HP 9835A Programming Manual

35 series desktop computer assembly development rom
Table of Contents

Advertisement

Debugging
185
As an example of this, suppose the decimal value 15 is to be converted into octal. The method
is-
and the resultant value is 17, the octal representation of 15. Now, if the result has 1 added to it,
as with the expression -
the ultima te result is 18. This can be a surprise since the usual octal arithmetic suggests that the
result of 178
+
1 be 208. To get the proper octal result, the procedure is -
Note also that the expression -
still does not yield 20.
IADR
This function yields the numeric value in octal representation of an assembled location. The
form is-
.. 1..
!·····II:JF;::: (
{assembled location}
As an example, take the case of the example program at the beginning of this chapter. The
result of-
is 76.
This function can be viewed as a convenient method of determining the address of a symbol, or
of an offset from a symbol.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 9835A and is the answer not in the manual?

Questions and answers

Table of Contents