Subtraction - Olivetti Programma 101 Reference Manual

Table of Contents

Advertisement

-

Subtraction

An instruction containing the operation "
the selected
register (subtrahend) from the contents of the A register (minuend) and is
executed in two phaaes:
1ST PHASE
2ND PHASE
___________________________________________________________________________
INSTRUCTION
PHASE 1
R-
A-
b -
B-
c -
C-
d -
D-
e -
E-
f -
F -
___________________________________________________________________________
EXAMPLE:
Decimal Wheel set at 2.
______________________________________
M
BEFORE
5
B-
AFTER
3.255
___________________________________________________________________________
An example of using this Instruction manually to subtract 2 factors would be (assume factor 1
(7.2567) is in the b (B/) register and factor 2 (3.255) is in the B register):
Transfer factor 1 to the A register by depressing keys B/
Subtract the second factor by depressing keys B- . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Print the difference by depressing A
For this example the Decimal Wheel was set at 4.
Transfer the contents of the selected register (subtrahend) to II, while
ratalnlng them In the original register.
Subtract the contents of M from the contents of A (minuend) obtaining in
A the difference truncated according to the setting of the Decima/ Wheel.
The complete difference is in R. M contains the subtrahend.
PHASE 2
A-M
R
M
A-M
A
M
A-M
b
M
A-M
B
M
A-M
c
M
A-M
C
M
A-M
d
M
A-M
D
M
A-M
e
M
A-M
E
M
A-M
f
M
A-M
F
M
A-M
A
R
7.2567
9.00
4.00
4.0017
-
" directs the computer to subtract the contents of
RESULTS
TRUNCATED
A
A
A
A
A
A
A
A
A
A
A
A
A
B
_
3.255
3.255
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.0017 A
- 25 -
COMPLETE
____________
R
R
R
R
R
R
R
R
R
R
R
R
R
. . . . . . . . . . . . . . . . . . . . .
b
B -

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents