HP 9835A Programming Manual page 114

35 series desktop computer assembly development rom
Table of Contents

Advertisement

Arithmetic
97
The example does not include routines for testing and handling -
• signs
• division by zero
• exponents
• overflow
• rounding
These have to be handled in a real program before or after the division algorithm itself (as
appropriate).
SOURCE
Quotie~t
3:
SOURCE Quotient 4:
SGJRCE QuotIent
r~r=
::;C1tJ~:C:
t:
:"1
:;;~ 1
~=;C~l..JF~C:t:
L:~
i
1:.
~"'i
;-'i~:
.'1
~IH
Digit counter
=:+
- . ; .
.;
- - - . . ! .
t-i:_:
1.'
tor quotient word
for quotient word 2
for quotient word
~
+n~
quotiEfi~
word 4
for quotient word 1
START OF DIVISION LOOP
It;
::.3.:::.:::' :::::
:=':::r"':
~.,:
r.E'!"-'rnl r-i·3.1:.
i
:::r-~~
ZE,tH·C:
~nplemEfit
the dividend
Initializes digit CC0nt to
,~
Initialize FIN
repE~ition
counter to
ORKS ON NEXT QUOTIENT DIGIT

Advertisement

Table of Contents
loading

Table of Contents