Hi everyone,
I am having a little problem verifying some math results being done in DL06. Doing simple math in DL06 suppose to be relatively easy and straight forward but I must be doing something wrong that my results are not coming out correctly.
here's part of my program:
LD V2020 -- V2020 contains integer 50
DIVR R4 -- dividing accumulator by real # 4.0
OUTD V2022 -- save result (should be 12.5) to V2022
LDR R320000 -- load real # 320,000 into accumulator
DIVR V2022 -- divide accumulator by what's in V2022
OUTD V2024 -- store result into V2024
but my "DATA VIEW" shows V2022 = 12 and V2024 is some garbage #. I tried looking at it w/ BCD, decimal, real... none of the options would give me the correct number.
Can anyone see what I am doing wrong? Any help would be greatly appreciated.
Thnx,
--tong
I am having a little problem verifying some math results being done in DL06. Doing simple math in DL06 suppose to be relatively easy and straight forward but I must be doing something wrong that my results are not coming out correctly.
here's part of my program:
LD V2020 -- V2020 contains integer 50
DIVR R4 -- dividing accumulator by real # 4.0
OUTD V2022 -- save result (should be 12.5) to V2022
LDR R320000 -- load real # 320,000 into accumulator
DIVR V2022 -- divide accumulator by what's in V2022
OUTD V2024 -- store result into V2024
but my "DATA VIEW" shows V2022 = 12 and V2024 is some garbage #. I tried looking at it w/ BCD, decimal, real... none of the options would give me the correct number.
Can anyone see what I am doing wrong? Any help would be greatly appreciated.
Thnx,
--tong