Coa Unit I Final
Coa Unit I Final
ARCHITECTURE
UNIT 1
Every day we may cross a path of many situation like “Should I do this or not?”, “Should I do
switch on laptop or not?”. These types of questions having answer either “Yes” or “No”. So these
kind of situation is binary decision.
1. Scahin Tendulker is the only player who scored 100 centuries in Circket.
2. 56 – 4 = 52
3. Ahmedabad is biggest district of Gujarat.
4. What do you feel about lockdown extension?
In these sentences 1, 2 are TRUE and sentence 3 is False, where as sentence 4 cannot be answered
in TRUE or FALSE. Hence sentences which can be answered in TRUE or FALSE are known
as logical statements or truth functions.
The result of truth functions are stored in TRUE or FALSE values are known as truth values. This
can be written as 0 and 1 in logical constant where 1 means TRUE and 0 means FALSE. These
values can be stored in variables are known as logical variables or binary valued variables.
Boolean logic refers to Boolean Algebra which values of variables are the truth
values true or false. These values have two states either on or off denoted by 0 or 1.
Truth Table
A truth table represents a Boolean function or expression with all possible input and output results
in tabular form.
If the result is always 1 or true or high, is called Tautology, whereas the result is false or 0(zero)
or low is known as Fallacy. The number of rows in the truth table is computed as 2 n .
Logical Operations
Logical operations can be applied of truth functions. These operations carried out by logical
operators with operands.
Logical Operators
In this section of notes Boolean Logic Computer Class 11 we are going to discuss the logical
operators used in Boolean logic.
NOT
It handles only a single variable. The operation performed by NOT is known as complementation.
To denote NOT operator bar symbol is used.
A Result A’ (bar)
0 0
0 1
AND
It is a binary operator that operates on two variables and the result of the AND operator is known
as logical multiplication. To denote AND operator dot(.) symbol is used. The truth table for AND
operator looks like as following:
A B A.B (Result)
0 0 0
0 1 0
1 0 0
1 1 1
AND operator accepts two input variables A and B with values 0 and 1 respectively. the result
calculated as follows:
Row 1: A=0, B = 0 , 0 x 0 = 0
Row 2: A = 0, B = 1, 0 x 1 = 0
Row 3 : A = 1. B = 0, 1 x 0 = 0
Row 4: A = 1, B = 1, 1 x 1 = 1
In short the AND operator returns TRUE or 1 when both input are 1, rest all results will be 0. True
is also considered as high, and False as low.
OR
It is also a binary operator that operates on two variables. The result of the OR operator is also
known as logical addition. The symbol is used for OR is plus (+). The truth table for the OR
operator looks as follows:
A B A+B (Result)
0 0 0
0 1 1
1 0 1
1 1 1
OR operator accepts two input variables A and B with values 0 and 1 respectively. the result
calculated as follows:
Row 1: A = 0, B = 0 , 0 + 0 = 0
Row 2: A = 0, B = 1, 0 + 1 = 1
Row 3: A = 1, B = 0, 1 + 0 = 1
Row 4: A = 1, B = 1, 1 + 1 = 1
In short the OR operator returns TRUE or 1 when any one input value is 1, otherwise 0. True is
also considered as high, and False as low.
After getting familiar with logical operations for notes Boolean Logic Computer Class 11 you
should learn about operator precedence.
Logic Gates
A logical gate is a logical circuit that takes one or more inputs and produces result. It uses three
operators AND, OR and NOT known as AND Gate, OR Gate and NOT Gate. These are
fundamentals gates.
NOT Gate
A NOT gate has only one input. It is known as inverter gate. It is used for electronic inverter
devices. It produces the reverse result of an input. The output is always negation or complement
of an input signal.
AND Gate
AND means that A & B. When both inputs are true then it produce true result, otherwise false.
and gate
OR Gate
OR refers like A or B. It is considered as inclusive “or”. The output is true if either one or two
inputs are “true”. It both false it produce false result.
or gate
Some more gates are available with OR and AND gates followed by inverter, N or X is written in
front of name of gate. They are as follow:
NAND Gate
It stands for NOT AND that produce reverse result of AND gate. The truth table for NAND Gate
is as following:
A B A.B (A.B)’
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
NOR Gate
It stands for NOT OR. It produces reverse output than the OR gate. The truth table for NOR Gate
is as follows:
A B A+B (A+B)’
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
XOR Gate
A B Result
0 0 0
0 1 1
1 0 1
1 1 0
The last topic of notes Boolean Logic Computer Class 11 is all about basic boolean laws. Just
observe them.
Combination Circuits
Combinational Logic Circuits (Circuits without a memory): In this type of logic circuits outputs
depend only on the current inputs.
Sequential Logic Circuits (Circuits with memory): In this type of logic circuits outputs depend
on the current inputs and previous inputs. These circuits employ storage elements and logic gates.
Combinational Logic Circuits
Combinational circuit consists of logic gates whose output at any time is determined from the
present combination of inputs. The logic gate is the most basic building block of combinational
logic. The logical function performed by a combinational circuit is fully defined by a set of
Boolean expressions.
A combinational circuit consists of input variables, logic gates, and output variables. The
logic gates accept signals from inputs and output signals are generated according to the logic
circuits employed in it. Binary information from the given data transforms to desired output data
in this process. Both input and output are obviously the binary signals, i.e., both the input and
output signals are of two possible states, logic 1 and logic 0.
A combinational circuit consists of input variables (n), logic gates, and output variables
(m). ² For (n) input variables there are 2n possible combinations of binary input values. ² For each
possible input combination there is one and only one possible output combination, a combinational
circuit can be describe by (m) Boolean functions one for each output variable. ² Each output
function expressed in terms of the (n) input variables.
Eg : Adder, Multiplier, Subtractor,
Half Adder
Half adder is a combinational logic circuit with two inputs and two outputs. The half adder circuit
is designed to add two single bit binary number A and B. It is the basic building block for addition
of two single bit numbers. This circuit has two outputs carry and sum.
Block diagram
Truth Table Circuit Diagram
Full Adder
Full adder is developed to overcome the drawback of Half Adder circuit. It can add two one-bit
numbers A and B, and carry c. The full adder is a three input and two output combinational circuit.
Block diagram
Half Subtractors
Half subtractor is a combination circuit with two inputs and two outputs (difference and borrow).
It produces the difference between the two binary bits at the input and also produces an output
(Borrow) to indicate if a 1 has been borrowed. In the subtraction (A-B), A is called as Minuend bit
and B is called as Subtrahend bit.
Truth Table
Circuit Diagram
Full Subtractors
The disadvantage of a half subtractor is overcome by full subtractor. The full subtractor is a
combinational circuit with three inputs A,B,C and two output D and C'. A is the 'minuend', B is
'subtrahend', C is the 'borrow' produced by the previous stage, D is the difference output and C' is
the borrow output.
Flip Flop
Flip flop is a sequential circuit which generally samples its inputs and changes its outputs only at
particular instants of time and not continuously. Flip flop is said to be edge sensitive or edge
triggered rather than being level triggered like latches.
Block Diagram
Circuit Diagram
Truth Table
Operation
S.N. Condition Operation
1 S = R = 0 : No change
If S = R = 0 then output of NAND gates 3 and 4 are forced
to become 1.
Hence R' and S' both will be equal to 1. Since S' and R' are
the input of the basic S-R latch using NAND gates, there
will be no change in the state of outputs.
2 S = 0, R = 1, E = 1
Since S = 0, output of NAND-3 i.e. R' = 1 and E = 1 the
output of NAND-4 i.e. S' = 0.
Hence Qn+1 = 0 and Qn+1 bar = 1. This is reset condition.
3 S = 1, R = 0, E = 1
Output of NAND-3 i.e. R' = 0 and output of NAND-4 i.e.
S' = 1.
Hence output of S-R NAND latch is Qn+1 = 1 and Qn+1 bar
= 0. This is the reset condition.
4 S = 1, R = 1, E = 1
As S = 1, R = 1 and E = 1, the output of NAND gates 3
and 4 both are 0 i.e. S' = R' = 0.
Hence the Race condition will occur in the basic NAND
latch.
Block Diagram
Circuit Diagram
Truth Table
Operation
S.N. Condition Operation
1 E=0
Latch is disabled. Hence no change in output.
2 E = 1 and D = 0
If E = 1 and D = 0 then S = 0 and R = 1. Hence irrespective of the
present state, the next state is Qn+1 = 0 and Qn+1 bar = 1. This is the
reset condition.
3 E = 1 and D = 1
If E = 1 and D = 1, then S = 1 and R = 0. This will set the latch
and Qn+1 = 1 and Qn+1 bar = 0 irrespective of the present state.
Symbol Diagram
Block Diagram
Truth Table
Operation
S.N. Condition Operation
1 T = 0, J = K = 0 The output Q and Q bar won't change
Input Unit: The input unit consists of input devices that are attached to the computer. These
devices take input and convert it into binary language that the computer understands. Some
of the common input devices are keyboard, mouse, joystick, scanner etc.
Central Processing Unit (CPU): Once the information is entered into the computer by the
input device, the processor processes it. The CPU is called the brain of the computer because
it is the control center of the computer. The CPU has three main components which are
responsible for different functions – Arithmetic Logic Unit (ALU), Control Unit (CU) and
Memory registers
Arithmetic and Logic Unit (ALU): The ALU, as its name suggests performs mathematical
calculations and takes logical decisions. Arithmetic calculations include addition,
subtraction, multiplication and division. Logical decisions involve comparison of two data
items to see which one is larger or smaller or equal.
Control Unit : The Control unit coordinates and controls the data flow in and out of CPU and
also controls all the operations of ALU, memory registers and also input/output units. It is
also responsible for carrying out all the instructions stored in the program. It decodes the
fetched instruction, interprets it and sends control signals to input/output devices until the
required operation is done properly by ALU and memory.
Memory : Memory attached to the CPU is used for storage of data and instructions and is
called internal memory. The internal memory is divided into many storage locations, each of
which can store data or instructions. Each memory location is of the same size and has an
address. With the help of the address, the computer can read any memory location easily
without having to search the entire memory. when a program is executed, it’s data is copied
to the internal memory and is stored in the memory till the end of the execution. The internal
memory is also called the Primary memory or Main memory. This memory is also called as
RAM, i.e. Random Access Memory. The time of access of data is independent of its location
in memory, therefore this memory is also called Random Access memory (RAM). Read this
for different types of RAMs
Output Unit: The output unit consists of output devices that are attached with the computer.
It converts the binary data coming from CPU to human understandable form. The common
output devices are monitor, printer, plotter etc.
An Instruction Set Architecture (ISA) defines the communication rules between the
hardware and software of the computer. The ISA is a design principle (conceptual) and not stored
in a computer’s memory.
In the RISC architecture, the instruction set of the computer system is simplified to reduce the
execution time. RISC architecture has a small set of instructions that generally includes register-
to-register operations.
The RISC architecture uses comparatively a simple instruction format that is easy to decode. The
instruction length can be fixed and aligned to word boundaries. RISC processors can execute only
one instruction per clock cycle.
The following are some important characteristics of a RISC Processor −
A RISC processor has a few instructions.
RISC processor has a few addressing modes.
In the RISC processor, all operations are performed within the registers of the CPU.
RISC processor can be of fixed-length.
RISC can be hardwired rather than micro-programmed control.
RISC is used for single-cycle instruction execution.
RISC processor has easily decodable instruction format.
RISC architectures are characterized by a small, simple instruction set and a highly efficient
execution pipeline. This allows RISC processors to execute instructions quickly, but it also means
that they can only perform a limited number of tasks.
General RISC Instructions Attributes:
- Single instructions take only one CPU cycle to complete
- Instruction lengths are fixed, regardless of the instruction type
- Reduced complexity of hardware leads to less power consumption at the expense of overall
processing times.
Complex Instruction Set Computers (CISC)
CISC (Complex Instruction Set Computer) is an ISA design practice that focuses on multi-
step instructions and complex, power-consuming hardware. These designs primarily focus on
hardware components and binary instruction complexity. Processing components are typically not
interchangeable with RISC-designed systems.
The CISC architecture comprises a complex instruction set. A CISC processor has a variable-
length instruction format. In this processor architecture, the instructions that require register
operands can take only two bytes.
In a CISC processor architecture, the instructions which require two memory addresses
can take five bytes to comprise the complete instruction code. Therefore, in a CISC processor, the
execution of instructions may take a varying number of clock cycles. The CISC processor also
provides direct manipulation of operands that are stored in the memory.
The primary objective of the CISC processor architecture is to support a single machine
instruction for each statement that is written in a high-level programming language.
The following are the important characteristics of a CISC processor architecture −
CISC can have variable-length instruction formats.
It supports a set of a large number of instructions, typically from 100 to 250 instructions.
It has a large variety of addressing modes, typically from 5 to 20 different modes.
CISC has some instructions which perform specialized tasks and are used infrequently.
CISC architectures have a large, complex instruction set and a less efficient execution pipeline.
This allows CISC processors to perform a wider range of tasks, but they are not as fast as RISC
processors when executing instructions.
It stands for Reduced Instruction Set It stands for Complex Instruction Set
1.
Computer. Computer.
These simple instructions are This architecture has a set of special purpose
3. executed in one clock cycle. circuits which help execute the instructions at
a high speed.
These chips are relatively simple to These chips are complex to design.
4.
design.
Simple addressing formats are The instructions interact with memory using
9.
supported. complex addressing modes.
Registers are used for procedure The stack is used for procedure arguments and
12.
arguments and return addresses. return addresses.
Instruction Set Characteristics
The CPU is the heart and brain of the computer .The entire processing takes place in the
Central Processing Unit (CPU). It performs calculations, issues the commands, coordinates with
all other hardware components, and executes programs including the operating system. But to
make CPU work, we must speak to it in binary machine language. In other words it is group of
bits that tells the computer to perform specific operations. The collection of bits of a machine
language are known as instructions, and its syntax is known as an instructions set. Instruction set
is the boundary where the computer designer and computer programmer see the same computer
from different viewpoints. From the designer, point of view, the computer instruction set provides
a functional description of a processor, that is :
(i) A detailed list of the instructions that a processor is capable of processing.
(ii) A describes of the types/locations/access methods for operands.
The common goal of computer designer is to build the hardware for implementing the machine's
instructions for CPU. From the programmer's point of view, the user must understand machine or
assembly language for low-level programming. Moreover, the user must be aware of the register
set, instruction types and the function that each instruction performs. However, our prime focus is
the programmer's viewpoint with the design of instruction set. Instruction set is the collection of
machine language instructions that a particular processor understands and executes. In other words,
a set of assembly language mnemonics represents the machine code of a particular computer.
Therefore, if we define all the instructions of a computer, we can say we have defined the
instruction set. It should be noted here that the instructions available in Instruction Set Architecture
a computer are machine dependent, that is, a different processors have different instruction sets.
However, a newer processor that may belong to some family may have a compatible but extended
instruction set of an old processor of that family.
TYPES OF INSTRUCTIONS
A stack based computer do not use address field in instruction.To evaluate a expression first it is
converted to revere Polish Notation i.e. Post fix Notation.
Expression: X = (A+B)*(C+D)
Post fixed : X = AB+CD+*
TOP means top of stack
M[X] is any memory location
PUSH A TOP = A
PUSH B TOP = B
ADD TOP = A+B
PUSH C TOP = C
PUSH D TOP = D
ADD TOP = C+D
MUL TOP = (C+D)*(A+B)
POP X M[X] = TOP
Expression: X = (A+B)*(C+D)
AC is accumulator
M[] is any memory location
M[T] is temporary location
LOAD A AC = M[A]
ADD B AC = AC + M[B]
STORE T M[T] = AC
LOAD C AC = M[C]
ADD D AC = AC + M[D]
MUL T AC = AC * M[T]
STORE X M[X] = AC
Expression: X = (A+B)*(C+D)
Expression: X = (A+B)*(C+D)
R1, R2 are registers
M[] is any memory location
CPU Registers
In Computer Architecture, the Registers are very fast computer memory which are used to execute
programs and operations efficiently. This does by giving access to commonly used values, i.e., the
values which are in the point of operation/execution at that time. So, for this purpose, there are
several different classes of CPU registers which works in coordination with the computer memory
to run operations efficiently.
The sole purpose of having register is fast retrieval of data for processing by CPU. Though
accessing instructions from RAM is comparatively faster with hard drive, it still isn’t enough for
CPU. For even better processing, there are memories in CPU which can get data from RAM which
are about to be executed beforehand. After registers we have cache memory, which are faster but
less faster than registers.
Accumulator:
This is the most frequently used register used to store data taken from memory. It is in different
numbers in different microprocessors.
These are numbered as R0, R1, R2….Rn-1, and used to store temporary data during any ongoing
operation. Its content can be accessed by assembly programming. Modern CPU architectures tends
to use more GPR so that register-to-register addressing can be used more, which is comparatively
faster than other addressing modes.
1. Fetch Cycle
The fetching of instruction is the first phase. The fetch instruction is common for each instruction
executed in a central processing unit. In this phase, the central processing unit sends the PC to
MAR and then sends the READ command into a control bus.
After sending a read command on the data bus, the memory returns the instruction, which is stored
at that particular address in the memory. Then, the CPU copies data from the data bus into MBR
and then copies the data from MBR to registers.
After all this, the pointer is incremented to the next memory location so that the next instruction
can be fetched from memory.
2. Decode Cycle
The decoding of instruction is the second phase. In this phase, the CPU determines which
instruction is fetched from the instruction and what action needs to be performed on the instruction.
The opcode for the instruction is also fetched from memory and decodes the related operation
which needs to be performed for the related instruction.
3. Read Cycle
The reading of an effective address is the third phase. This phase deals with the decision
of the operation. The operation can be of any type of memory type non-memory type operation.
Memory instruction can be categorized into two categories: direct memory instruction and indirect
memory instruction.
4. Execute Cycle
The execution of the instruction is the last phase. In this stage, the instruction is finally
executed. The instruction is executed, and the result of the instruction is stored in the register. After
the execution of an instruction, the CPU prepares itself for the execution of the next instruction.
For every instruction, the execution time is calculated, which is used to tell the processing speed
of the processor.
The data transfer for implementation takes place in two methods are as follows −
Processor-memory − The data sent from the processor to memory or from memory to
processor.
Processor-Input/Output − The data can be transferred to or from a peripheral device by
the transfer between a processor and an I/O device.
In the execute cycle, the processor implements the important operations on the information, and
consistently the control calls for the modification in the sequence of data implementation. These
two methods associate and complete the execute cycle.
State Diagram for Instruction Cycle
The figure provides a large aspect of the instruction cycle of a basic computer, which is in the
design of a state diagram. For an instruction cycle, various states can be null, while others can be
visited more than once.
A digital computer system exhibits an interconnection of digital modules such as registers, decoders,
arithmetic elements, and Control logic. These digital modules are interconnected with some common data
and control paths to form a complete digital system. Moreover, digital modules are best defined by the
registers and the operations that are performed on the data stored in them. The operations performed on the
data stored in registers are called Micro-operations. The internal hardware organization of a digital system
is best defined by specifying:
The Register Transfer Language is the symbolic representation of notations used to specify the sequence of
micro-operations. In a computer system, data transfer takes place between processor registers and memory
and between processor registers and input-output systems. These data transfer can be represented by standard
notations given below:
Register Transfer
The term Register Transfer refers to the availability of hardware logic circuits that can perform a
given micro-operation and transfer the result of the operation to the same or another register. Most
of the standard notations used for specifying operations on various registers are stated below.
The following image shows the block diagram that depicts the transfer of data from R1 to R2.
Here, the letter 'n' indicates the number of bits for the register. The 'n' outputs of the register R1
are connected to the 'n' inputs of register R2. A load input Register Transfer
Memory Transfer
Most of the standard notations used for specifying operations on memory transfer are stated below.
● The transfer of information from a memory unit to the user end is called a Read operation.
● The transfer of new information to be stored in the memory is called a Write operation.
● A memory word is designated by the letter M.
● We must specify the address of memory word while writing the memory transfer
operations.
● The address register is designated by AR and the data register by DR.
● Thus, a read operation can be stated as:
1. Read: DR ← M [AR]
● The Read statement causes a transfer of information into the data register (DR) from the
memory word (M) selected by the address register (AR).
● And the corresponding write operation can be stated as:
1. Write: M [AR] ← R1
● The Write statement causes a transfer of information from register R1 into the memory
word (M) selected by address register (AR).
Addressing Modes
The term addressing modes refers to the way in which the operand of an instruction is specified.
The addressing mode specifies a rule for interpreting or modifying the address field of the
instruction before the operand is actually executed.
An assembly language program instruction consists of two parts
Immediate addressing mode (symbol #):In this mode data is present in address field of
instruction .Designed like one address instruction format.
Example: MOV AL, 35H (move the data 35H into AL register)
Register mode: In register addressing the operand is placed in one of 8 bit or 16 bit general
purpose registers. The data is in the register that is specified by the instruction.
Here one register reference is required to access the data.
Register Indirect mode: In this addressing the operand’s offset is placed in any one of the
registers BX,BP,SI,DI as specified in the instruction. The effective address of the data is in the
base register or an index register that is specified by the instruction.
Here two register reference is required to access the data.
Example: MOV AX, [BX](move the contents of memory location s addressed by the register
BX to the register AX)
Auto Indexed (increment mode): Effective address of the operand is the contents of a
register specified in the instruction. After accessing the operand, the contents of this register
are automatically incremented to point to the next consecutive memory location.(R1)+.
Example:
Add R1, (R2)+ // OR
R1 = R1 +M[R2]
R2 = R2 + d
Auto indexed ( decrement mode): Effective address of the operand is the contents of a register
specified in the instruction. Before accessing the operand, the contents of this register are
automatically decremented to point to the previous consecutive memory location. –(R1)
Example:
Add R1,-(R2) //OR
R2 = R2-d
R1 = R1 + M[R2]
Direct addressing/ absolute addressing Mode (symbol [ ]): The operand’s offset is given in
the instruction as an 8 bit or 16 bit displacement element. In this addressing mode the 16 bit
effective address of the data is the part of the instruction.
Here only one memory reference operation is required to access the data .
Indirect addressing Mode (symbol @ or () ):In this mode address field of instruction contains
the address of effective address.Here two references are required.
1st reference to get effective address.
2nd reference to access the data.
Based on the availability of Effective address, Indirect mode is of two kind:
1. Register Indirect:In this mode effective address is in the register, and corresponding
register name will be maintained in the address field of an instruction.
Here one register reference,one memory reference is required to access the data.
2. Memory Indirect:In this mode effective address is in the memory, and
corresponding memory address will be maintained in the address field of an
instruction.
Here two memory reference is required to access the data.
Example:ADD AL,[BX]
Indexed addressing mode: The operand’s offset is the sum of the content of an index register
SI or DI and an 8 bit or 16 bit displacement.
Based Indexed Addressing: The operand’s offset is sum of the content of a base register BX
or BP and an index register SI or DI.
Base register addressing mode: Base register addressing mode is used to implement inter
segment transfer of control.In this mode effective address is obtained by adding base register
value to address field value.
EA= Base register + Address field value.
PC= Base register + Relative value.
Instruction Set
An instruction set is a list of all the instructions that a processor can execute. Such instructions
include arithmetic operations such as add and subtract, logical operations such as AND, OR and
NOT, data instructions such as move, input and output, and control instructions such as goto, call
and return. The instruction set specifies the opcodes (machine language operation codes) that are
used to identify each instruction. The instruction set architecture (ISA) is largely independent of
the microarchitecture used within the microprocessor itself. The Intel Pentium and the AMD
Athlon, for example, implement almost identical versions of the x86 instruction set, but have very
different internal microarchitectures.
Logical Group:
• Instructions of this group perform logical operations such as
• Logical AND, logical OR, Exclusive-OR
• Rotate or take complement of data in register or memory
• Examples are: ANA, ORA, XRA, CMP, RAR, etc…
Jump instructions.
Call and return instructions.
Restart instructions.
Conditional jump instructions allow the microprocessor to make decisions based on certain
conditions indicated by various flags. They check the flag condition and decide to change or not
change the sequence of the program.
Carry flag.
Zero flag.
Sign flag.
Parity flag.
The complete list of conditional jump instructions in 8085 is described in the following table.
The Call and Return instructions in 8085 are associated with the subroutine technique. When the
CALL instruction is executed, the 8085 stores the contents of the Program Counter on the top of
the stack and transfers the program to the location of the subroutine. The Return instruction inserts
the element from the top of the stack two the Program Counter.
These instructions are described in the following table.
CALL 16-bit address Jumps unconditionally to the memory location specified by the address.
RET Return to the calling program after completing the subroutine sequence.
Restart Instruction
The Restart instruction in 8085 is associated with the interrupt technique. They are executed the
same way as Call instruction.
Halt and The CPU finishes executing the current instruction and
HLT None enter wait stops further execution. An interrupt or reset is necessary to
state exit from the halt state.
Disable The interrupt enable flip-flop is reset and all the interrupts
DI None
interrupts are disabled except TRAP.
Enable The interrupt enable flip-flop is set and all the interrupts are
EI None
interrupts enabled.
Set interrupt This instruction is used to implement the interrupts 7.5, 6.5,
SIM None
mask 5.5, and serial data output.