Chapter02 Assembly
Chapter02 Assembly
الفرقة الثانية
Q1. What is control signals and How shall be supplied?
1) A program is sequence of steps.
2) Each step contains some arithmetic or logical operations.
3) For each step, a new set of control signals is needed.
4) A hardware segment accepts the code and issues the control signals.
5) Instead of rewriting the hardware for each new program.
6) Interpreter used to interpret each instruction and generate control signals.
Q2. Compare between programming in hardware and software.
Hardware:
✓ The system accepts data and control signals to produce results.
✓ A hardwired program: is inflexible.
Software:
✓ Instead of rewriting the hardware for each new program.
✓ An interpreter interprets each instruction and generates control
signals.
1 Assembly
Q3. State the Top-Level Computer Component
2 Assembly
Q4. Using figure show what is OpCode and how can affect AC
(accumulator)?
✓ Both instruction and data are 16 bits long.
✓ The instruction format provides 4 bits for the OpCode.
✓ OpCode is abbreviation of Operation Code.
✓ OpCode may be as many 24 = 16 different.
✓ Other for memory can be addressed 212 = 4096 (4K)
1) 0001 = load AC from Memory.
2) 0010 = Store AC to memory.
3) 0101= Add to AC from memory.
Q5. Trace the status of memory and CPU registers when adding two words
resides in memory at address 940 and address 941, and store the result
in address 941.
3 Assembly
Q6. What is the basic instruction cycle? Write short notes about each
instruction cycle?
4 Assembly
Q9. What are classes of interrupts?
5 Assembly
Q11. Using the next example program show how transfer control vial
interrupts (Program Flow Control)
6 Assembly
Q12. Describe Instruction cycle with interrupts.
7 Assembly
Q13. Using the next program compare between Timing Short and long
I/O Wait
Short long
8 Assembly
Q15. Graph a figure that shows different types of multiple interrupts.
9 Assembly
Q16. What is the computer main component (units) how can connect?
Three basic types (processor, memory, I/O) communicate with each
other.
The collection of paths connecting the various modules called the
interconnection structure.
The design of this structure will depend on the exchanges among
modules.
Q17. Describe Memory connections.
Receives and sends data.
Receives addresses (of locations).
Receives control signals.
1. Read
2. Write
3. Timing
Q18. Describe Input/output connections.
Similar to memory from computer’s viewpoint. [True]
A key characteristic:
1) Shared transmission medium. وسيلة نقل مشتركة
2) Multiple devices connect to the bus, and a signal transmitted by any
one device is available for reception by all other devices attached to
the bus.
3) If two devices transmit during the same time period, their signals will
overlap and become garbled مشوهه.
4) Thus, only one device at a time can successfully transmit.
5) A communication pathway connecting two or more devices.
6) Usually broadcast.
7) Often grouped a number of channels in one bus
e.g. 32 bit data bus is 32 separate single bit channels
8) Power lines may not be shown
There is no difference Identify the source and Memory read / write signal
between data and destination of data. Interrupt signal
instruction. At this level. 8080 has 16-bit address Clock signals.
Width determine bus Responsible for directing the
performance. 64K address. flow of instructions and data
within the CPU
May consists of 32, 64,
128
Each line can carry only
1 bit at a time.
If the data bus is 32 and
each instruction is 64
bits long then the
processor must access
the memory twice.
12 Assembly
13 Assembly
Q22. What are different control lines?
1) Memory write (data on bus written into address location).
5) Transfer ACK (data have been accepted from or placed on the bus).
selected.
14 Assembly