Shivajees MCQ On Microprocessor (Instruction Set) - GATE
Shivajees MCQ On Microprocessor (Instruction Set) - GATE
set)
1. In Assembly language program, comment lines will start
with_______
a) "//" b) ";" c) "#" d) "/* */"
correct answer: c
correct answer: b
correct answer : a : example for assembly directive " BEGIN EQU 0FF0H" ;
the value 0ff0 can be referred by the name "BEGIN"
correct answer: b:flags hint: 8085 has five flags namely:Zero flag (Z),Carry
flag (CY),Sign flag (S),Parity flag (P),Auxiliary Carry flag (AC). JNC 0FF0H
means Jump to location 0FF0 if Carry=0
correct answer; f.
correct answer; d:carry flag. If A is Less then Carry flag is set. If A=B then
zero flag will be set. if A is greater than B, then carry and zero flags will be
RESET.
correct answer; d.
Correct answer; b> STC will set carry to 1. CMC will complement the
carry.
correct answser: a
correct answer;b:
"END" directive is placed at the end of the program. The assembler will not process the statements after END.
DB 50h reserves 50 BYTES in memory.
DW50h reserves 50 WORDS in memory. 1 word=2 bytes
DQ reserves 4 WORDS, D
correct answer; c. When cpu wants to run an Interrupt service routine, it has
to store the present status of the currently running program. Hence it stores
the Program counter and Flags and Accumulator details in the stack.
MOV B, A ; b=0C
RLC ; a=0001 1000 =18
RLC ; a=0011 0000 =30
ADD B ;a=30 + 0c = 3C
a) 3Ch b)18h c)0C h d)00 h
correct answer; a
correct answer; a; The contents of the A register is pushed onto the stack
first, followed by the Flag byte
44. What is the status of z flag, cy flag, sign flag at the end
of this program?
MVI A, 02H ; A=02H
MVI B, 03H ; B=03H
ADD B ; A=05H
XRA A ; A=0 Z=0
a) 1,0,0 b)0,1,0 c)1,0,0 d)1,0,1
correct answer: a, the instruction xra means xor with a . when a is xor-ed with
the same a , the result will become zero. As the result of accumulator
becomes zero, the zero flag is set.
E.None of these
Explanation:Factors on which the Processor speed depends
1.Processor clock speed
2.Processor pipelining
3.Width of the data and address bus, i.e. Max Data that can be fetched at
one stretch.
4.Support for floating point operations for faster floating point operations.
=========================================================
correct answer for 48.Direct, 49)Register 50) Register Indirect 51.Implicit 52.
immediate.
0 Add a comment
Comment as:
Publish