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. This function yields the numeric value in octal representation of an assembled location. The IADR 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.