Professional Documents
Culture Documents
Coa HW2
Coa HW2
2
ﻣﺣﻣد أﯾﺎد ﻋﺑداﻟﺣﻣﯾد
Lecture 3:
1-
2-
3-
OverFlow: Is the change in value of the sign bit after an arithmetic shift left operation. It can be
detected by an overflow flip fop, vs.
4-
Lecture 4:
1-
Lecture 5:
1-
BUS : A wire or a collection of wires that carry some multi-bit information is known
as bus. Main purpose of bus is to transfer information form one system to another.
DESCRIPTION:
• The basic computer has eight registers (AC, PC, DR, AC, IR, TR, INPR,
OUTR), a memory unit and a control unit. Path must be provided to
transfer information from one register to another and between memory
and registers.
• The number of wires will be excessive if connections are made between
the output of each register and input of other registers a more efficient
scheme is to use a common bus.
• Thus common bus provides a path between memory unit and registers.
2-
1-Memory reference instruction: It uses 12 bits to specify the address
.Mode Bit, I=0 for Direct Addressing and 1 for Indirect Addressing.
2-Register reference instruction: In this opcode has a value 111 and 0 in
the leftmost bit position. In this operand from the memory is not needed
and operation is directly performed on the processor register specified.
Since we assumed only one Processor Register (AC), in Register reference
instruction the operand is implicit (contents of AC). For example Shift AC,
Complement AC. The remaining 12 bits of the instruction register can be
used to specify any one of the different register reference.
3-
The computer system presented here has three instruction formats. Since
instruction register is of 16 bits, the opcode part has 3 bits and
interpretation of the remaining bits depends on the type of instruction.
4-
5-
0xxx 8xxx : AND – AND memory word to AC.
1xxx 9xxx : ADD – ADD memory word to AC.
7800 : CLA – Clear AC.
7200 : CMA – Complement AC.
7020 : INC – Increment AC.
F800 : INP - Input character to AC.
F400 : OUT - output character from AC.
F080 : ION – interrupt on.