Machine-translated by Google. Questions are authored in English.
Top

Assembly Language Programming Questions and Answers

1.

Match List I with List II and select the correct answer using the codes given below :

List IList II
(a) Register addressing(i) MOVC A, @ A + PC
(b) Immediate addressing(ii) DJNZ R2, LOOP
(c) Relative addressing(iii) MOV A, # 55H
(d) Indexed addressing(iv) MOV A, R1

Exam Year(s)

MH SET - 2021, SET Exam - 2021,

Answer: B

The correct code is (a)-(iv), (b)-(iii), (c)-(ii), (d)-(i).

MOV A, R1 takes its operand from a register, which is register addressing. MOV A, #55H carries the data 55H in the instruction itself, immediate addressing. DJNZ R2, LOOP jumps by a signed offset relative to the program counter, relative addressing. MOVC A, @A+PC forms the address by adding the accumulator to a base register, indexed addressing, used for look-up tables in code memory.

The other codes give immediate addressing to MOV A, R1 or treat the DJNZ jump as indexed.

Please log in or register to report this question.

2.

The JS is called as ...............

Exam Year(s)

MH SET - 2025, SET Exam - 2025,

Answer: A

JS stands for jump if sign (the 'jump the signed bit' option).

In the 8086 instruction set, JS is a conditional jump taken when the sign flag SF is 1, that is, when the result of the last arithmetic or logic operation was negative (its most significant bit is 1). Its complement is JNS, jump if not sign.

'Jump single bit', 'jump simple bit' and 'jump signal it' do not describe any flag. The S in JS refers to the sign flag, so the option mentioning the signed bit is the one that fits.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Assembly Language Programming Questions and Answers || Assembly Language Programming MCQ Questions and Answers || Assembly Language Programming GK Questions and Answers || Assembly Language Programming GK MCQ Questions || Assembly Language Programming Multiple Choice Questions and Answers || Assembly Language Programming GK || GK on Assembly Language Programming || Microprocessors and Microcontrollers Questions and Answers || Microprocessors and Microcontrollers MCQ Questions and Answers || Microprocessors and Microcontrollers GK Questions and Answers || GK on Microprocessors and Microcontrollers