MicroProcessor Assignment1
MicroProcessor Assignment1
MicroProcessor Assignment1
Ans . These are the registers which are vsisble in the program and can be directly used in the
program.
Ques2. The 80286 addresses registers that are 8 and _________ bits wide.
Ans . 16 bits.
Ans. The extended registers are addressable by 50386 and above processors.
Ans. ECX is a general purpose register that holds count for the instructions and in 50386 and
above processors can hold offset address of memory data,
Ans. The IP/EIP register is used to store the address of the next instruction.The instruction
pointer, which points to the next instruction in a program, is used by the
microprocessor to find the next sequential instruction in a program located within the
code segment.
Ques7. The carry flag bit is not modified by which arithmetic operations?
Ans. The carry flag bit is not modified by multiplication and division operations.
Ans. No, overflow will not occur if a signed FFH is added to a signed 01H.
Ques9. A number that contains 3 one bits is said to have _________ parity.
Ans. A number that contains 3 one bits is said to have have odd parity.
Ques 10. Which flag bit controls the INTR pin on the microprocessor?
Ans. 50386 microprocessor contains FS and GS to allow additional memory segment for
access register.
Ques 12. What is the purpose of a segment register in the real mode operation of the microprocessor?
Ans. The Segment Registers are the additional registers which generates addresses when combined
with other registers in the microprocessor. In protected mode, segment registers simply
point to data structures called segment descriptors that contain the information needed to
access a physical memory location.
1. CS(code) : The code segment register defines the starting address of the section of
memory holding code. In real mode operation, it defines the start of a
64K- byte section of memory; in protected mode, it selects a descriptor
that describes the starting address and length of a section of memory
holding code
2. DS(Data) : The data segment is a section of memory that contains most data used
by a program. Data are accessed in the data segment by an offset
address or the contents of other registers that hold the offset address.
4. SS (Stack) : The stack segment defines the area of memory used for the stack.
The stack entry point is determined by the stack segment and stack
pointer registers
Ques 13. In the real mode, show the starting and ending addresses of each segment located by the
following segment register values:
(a) 1000H
starting address = 10000H
ending address = 10000H + FFFFH
ending address = 1FFFFH
(b) 1234H
(c) 2300H
starting address = 23000H
ending address = 23000H + FFFFH
ending address = 32FFFH
(d) E000H
starting address = E0000H
ending address = E0000H + FFFFH
ending address = EFFFFH
(e) AB00H
starting address = AB000H
ending address = AB000H + FFFFH
ending address = BAFFFH
Ques 14. Find the memory address of the next instruction executed by the microprocessor, when
operated in the real mode, for the following CS:IP combinations:
CS : 23000H
IP +1A00H
Next instruction memory address : 24A000H
Ques 15. Real mode memory addresses allow access to memory below which memory address?
Ans. 1 MB or less