7418292749

7418292749



(*

The following is one way to solve ((A + B) x C) + (A - (D x C) + B).

This example shows how the accumulator and the stack accumulator are used in TL logie. *)

(*

LD C MUL(B ADD A

)

ADD (A SUB (B ADD( D MUL < )


Linę number *)

f2 Load C into accumulator.

'2

’3


Push C onto accumulator stack. Load B anto accumulator.

ADD A to B; ioad into accumulator.

Pop value of accumulator stack; rauitipiy this value by the value in the accumulator; load into accumulator.

r5 f ' 7 r8


Push accumulator    value    onto    accumulator    stack.    Load    A    into    accumulator.

Push accumulator    value    onto    accumulator    stack.    Load    B    into    accumulator.

Push accumulator    value    onto    accumulator    stack.    Load    D    into    accumulator.

Multiply C by D;    load into accumulator.

'9 Pop value ot accumulator stack; add this value to the value in the f accumulator; load into accumulator.

)


'10 Pop value of accumulator stack; subtract this value from the value in the f <2CCŁ^wJ<2tor/ 2o.acf into accumulator.

)


f 22 Pop value of accumulator stack; add this value to the value rn the ' accumulator; load into accumulator.

ST royDINT '12 Load value of accumulator into D1NT variable myDINT.



Wyszukiwarka

Podobne podstrony:
Sienicki, HM3 Utul I Word Study WORD STUDY: Stanu and Affixes Using confcxt clucs is one way to dwco
The Knitters Bible7 Make I (Mi) This is another way to increase one strtch and is often used when i
image020 ł*geothermal resources One way to help avert the impending energy crisis is to use Nat
Creating a Data Snapshot Using mysąldump One way to create a snapshot of the data in an existing mas
image020 ł*geothermal resources One way to help avert the impending energy crisis is to use Nat
help1 3 Too much tension on the llne will break It. One way to remedy thls Is to reduce the drag, wh
cp 65 REST—MAN’S ONLY CURE F"*"»SOR lhosc men who are thus troubled. there is one way Cj ’
system 98 toscs its * tuhby " appcarance. Hut it is a wrony way to try an«1 get rid uf it bv k
85317 slajd11 (95) QC3a. In your opinion, which of the following is best able to take effective acti
15078 smpb 21 Disease and wcakness is thc way to death naturę for men and boys to cravc strength and
image013 Tlł^NALYTięA^ABORATgg^ The AnLab is your chancc to tell us which storics you likc beat, and

więcej podobnych podstron