Professional Documents
Culture Documents
Saqs
It control the organization if the program and provide necessary information to the assembler to
understand the assembly language programs to generate necessary machine codes. They indicate how
an operand or a section of the program is to be processed by the assembler.
An assembler supports directives to define data, to organise segments to control procedure, to define
macros. It consists of two types of statements: instructions and directives. The instructions are
translated to the machine code by the assembler whereas directives are not translated to the machine
codes.
(d) The STRUCT (or STRUC) and ENDS directives (counted as one)
(g)ASSUME
(h) EXTERN
(i) GLOBAL
(j) SEGMENT
(k)OFFSET
(l) PROC
(m)GROUP
(n) INCLUDE
2:-
Algorithm –
Stop
Program –
Explanation –
M0V AX, [500] is used to move the data from offset 500 to register AX
3ANSWER :--A pipelined system typically requires more resources (circuit elements, processing units,
computer memory, etc.) than one that executes one batch at a time, because its stages cannot share
those resources, and because buffering and additional synchronization logic may be needed between
the elements.
Pipelining is sometimes compared to a manufacturing assembly line in which different parts of a product
are being assembled at the same time although ultimately there may be some parts that have to be
assembled before others are. Even if there is some sequential dependency, the overall process can take
advantage of those operations that can proceed concurrently.
Computer processor pipelining is sometimes divided into an instruction pipeline and an arithmetic
pipeline. The instruction pipeline represents the stages in which an instruction is moved through the
processor, including its being fetched, perhaps buffered, and then executed. The arithmetic pipeline
represents the parts of an arithmetic operation that can be broken down and overlapped as they are
performed.
Unit 3
1ANSWER :-Main Memory
Main memory is where programs and data are kept when the processor is actively using them. When
programs and data become active, they are copied from secondary memory into main memory where the
processor can interact with them. A copy remains in secondary memory.
Main memory is intimately connected to the processor, so moving instructions and data into and out of the
processor is very fast.
Main memory is sometimes called RAM. RAM stands for Random Access Memory. "Random" means that the
memory cells can be accessed in any order. However, properly speaking, "RAM" means the type of silicon
chip used to implement main memory.
When people say that a computer has "512 megabytes of RAM" they are talking about how big its main
memory is. One megabyte of memory is enough to hold approximately one million (106) characters of a word
processing document. (There will be more about bytes and megabytes later on in these notes.)
Nothing permanent is kept in main memory. Sometimes data are placed in main memory for just a few
seconds, only as long as they are needed.
2ANSWER :-
A:-
B:-
Q:-What is Memory Hierarchy?
The memory in a computer can be divided into five hierarchies based on the speed as well as use. The
processor can move from one level to another based on its requirements. The five hierarchies in the memory
are registers, cache, main memory, magnetic discs, and magnetic tapes. The first three hierarchies are
volatile memories which mean when there is no power, and then automatically they lose their stored data.
Whereas the last two hierarchies are not volatile which means they store the data permanently.
The memory hierarchy design in a computer system mainly includes different storage devices. Most of the
computers were inbuilt with extra storage to run more powerfully beyond the main memory capacity. The
following memory hierarchy diagram is a hierarchical pyramid for computer memory. The designing of the
memory hierarchy is divided into two types such as primary (Internal) memory and secondary (External)
memory.