Академический Документы
Профессиональный Документы
Культура Документы
Ideally :
Binary Coded Decimals and Integers
L MW10
0 0 0 0
1 0 0 1
0 0 0 1
BCD to Integer
0 1 0 1 + 915 BCD
BTI 0 0 0 0 0 0 1 1
T MW20
+ 915 Integer
L MD10
T MD20
L MD10
1111
1110
0110
ITB
T MD20
1111
0100
0001
0011
L MD10
T MD20
ITD
T MD20
RND RND+
RNDTRUNC
RND Converts 32 Bit Real Number Into 32 Bit Integer and rounds it to nearest whole Number. Example: L MD10 RND T MD20 Integer +100 Integer -100 Real +100.5 Real 100.5
RND+
Converts 32 Bit Real Number Into 32 Bit Integer and rounds it to nearest smallest whole Number greater than or equals to Real Number under conversion. Example: L MD10 RND + T MD20 Integer +101 Integer -100 Real +100.5 Real 100.5
RNDConverts 32 Bit Real Number Into 32 Bit Integer and rounds it to nearest largest whole Number less than or equals to Real Number under conversion. Example: L MD10 RND T MD20 Integer +100 Integer -101 Real +100.5 Real 100.5
TRUNC
Converts 32 Bit Real Number Into 32 Bit Integer and truncates the decimal part of the Real Number under conversion. Example:
L MD10
TRUNC
Real +100.5
Real 100.5
T MD20
Integer +100
Integer -100
CAW
T MD20
CAD
T MD20
Accu 1
C B A
Accu 2
Accu 1
Accu 1
C B A
Accu 2
Accu 1
Accu 1
C B A
Accu 2
Accu 1
ENT : Shifts the contents of acuumulator 2 and 3 to the next higher accumulator
ACCU 1 ACCU 2 ACCU 3 ACCU 4
LEAVE : Shifts the contents of acuumulator 3 and 4 to the next lower accumulator
ACCU 1 ACCU 2 ACCU 3 ACCU 4
Thank You !