182
Debugging
Addresses are always specified in their octal representation, or symbolically (such as "Hook"
or "Loop"). This is the same as for an assembled location, which is what {address} happens to
be.
The output of the IDUMP statement is always printed to the current system printer. It is in octal
form, unless otherwise specified. This specification is accomplished by preceding {address}
with {mode selection}, which is one of the following -
:::::1 ' : :::;
c::
for ASCII character representation
E:: I : . . . .
~
for binary representation (base-2)
]][C::
for decimal representation (base-IO)
I···-!E::>< for hexadecimal representation (base-I6)
()c:::--r
for octal representation (base-B)
Thus, the general form of {location} is -
[ {mode selection} ] {address} ["r'C) {address} ]
As an example of all this, take the example program at the beginning of the chapter. If a couple
of statements are added so that the main BASIC program reads -
1 0
DE'!
fit
[10 J
2(1
I
cm'!
H~O
:::0
Ifi:=;~=;El"mlE
E::<tr·.3.c t
40
IBREAK loop G08JB Dlmp
50
IDUMP
41 TO 104
Dump
Ot
IC(~ r~gion
60
PRIHT
70 loop:
lINPUT A$
:::0
TCAll E::·::tj·-·act (A:$:)
9~~1
Fl?IhT "<";A$;
">"
120
D~np
A,B
r~gist~rs
in
oC~3.1
form,
1:3~J
:::.tr·1r"11;l
lE'r-!!;;!tt-f
it"1
ij!::'C
1
ri"i-:1'1
f'C!f'rn,
.:if'"i!j
14(J
.:if-i
i ]
tt-fE'
:::.tr-·lr"!f;!
1t-!
c~"~3.r·.:iCtE·r-·
f'Cir-'ff!
160
ump:
IDL~P
A
TO
B;DEC String;ASC String,l
TO
String,8
Need help?
Do you have a question about the 9835A and is the answer not in the manual?
Questions and answers