COA Module 3 PART 2
COA Module 3 PART 2
org
● Performs AND logic operation on pairs of ● Adds the content of the memory word
bits in AC and the memory word specified specified by the effective address to the
by effective address. value of AC.
● The result of operation is transferred to AC. ● Sum is transferred to AC and output carry
Cout is transferred into E (Extended
● D0T4: DR ← M [AR] accumulator flipflop)
D0T5: AC ← AC ^ DR, SC ← 0
● D1T4: DR ← M [AR]
D1T5: AC ← AC ^ DR, E ← Cout, SC ← 0
LDA : Load to AC STA : Store to AC
● Transfers the memory word specified by the ● Stores the content of AC into the memory
effective address to AC. word specified by the effective address.
● D2T4: DR ← M [AR] ● D3T4: M [AR] ← AC, SC ← 0
D2T5: AC ← DR, SC ← 0
ISZ: Increment and Skip if
Zero
BUN : Branch
Unconditionally ● Increments the word specified by the
effective address, and if the incremented
value is equal to 0, PC is incremented by 1
● Transfers the program to the instruction
in order to skip the next instruction in the
specified by the effective address.
program.
● D4T4: PC ← AR, SC ← 0
● D6T4: DR ← M [AR]
D6T5: DR ← DR+1
D6T6: M [AR] ← DR, if (DR 0) then (PC
← PC 1), SC ← 0
BSA : Branch and Save Return Address