cs401

advertisement
Paper was logical. 30 % mcqs from muazz and 70% new
What is the effect of push and pop on sp?
what is the purpose of special instructions like LDS and LES.
Function of ISR interups service routine
which of the following is bitwise
MOV
ADD
Sub aur is tra ka aik tha theak say yad nai
5 no question
rewrite valid code in one of followings
1.pop ip
2. mov ip 25
3. sub sp,2
9/20 mcq's were from past papers moaz file
subjective was totally new not from past
the questions were from the topics,
Subroutine, MUL, Multiplication asked abt some string instructions
and a program was given in 5 marks asked abt to tell what does it makes etc.
90% mcqs were from past papers..
how many operands in ADC?
ans: 3, 1, 2, 4
how 32 bit word is defined?
ans define double, double word, define quad, define byte
if 2 16bit operands multiplied the result will be ________
ans 32bit, 16bit, 24bit, 64bit
if div by zero occurs then ____??
ans div by zero int
for software int we write ____
ans INT
after push instruction SP gets ???
incremented by 2
decremented by 2
SP is associated by default with ???
CS
DS
SS
ES
which math function used in cmp
addition
muktiply
subtract
division
subjective were as follow
what will happen when instruction mov [es:di], DX ....2marks
What does RET n means and what happen when it executes... 2marks
write a program to using rotate to swap AH with AL. AH=0xDD and AL=0xAC
it should transform in AH=0xAC and AL=0xDD...3marks
if used div instruction used div ax, bx what will happen if AX=0x0007h DX=0x0000 and
BX=0x0002 and
B DX=0x0000h AX=0xFFFFh and BX=0x0010...... 3 marks
Which instruction is most use in screen rolling function and how screen rolling works...5 or 3
marks
write a program which does extended multiplication between 32bit operands..5marks
50% mcqs from past papers and long n short question were totally conceptual.just 1 question
from past paper.Q:Explain the complete operation of Interupt when it is generated?
Q:related MUL and its limitations?
Q:Write subroutine of two's complement?
Read more: 1. (Marx 5)What is divide overflow error? Complete the following code such that it
will cause divide overflow error.
mov BL,
mov AX,
DIV BL,
2. (Marx 5). In case branching technique in intel architecture which instruction is used to provide
temp diversion and how.?
3.(Marx 2) How many bytes will be moved by each of the following block codes?
(a). mov cx, 384
REP movsb
(b). mov 384
REP movsw
4. (Marx 2) How local variables are created using stack?
5. (Marx 2) Whenever the sign of a bit changes unexpectedly, what type of interrupt is generated
as a result?
Subjective questions in my paper today....
what type of call function are there? Mention also their names? (2 marks)
For a 32-bit operation in assembly language, which two registers are used to store the dividend
and what is the size of dividend in this case? (2 marks)
How local variables are created in assembly program and which instructions are used to create
them? (3 marks)
How many bytes will be moved by each of the following block of codes? (3 marks)
a) mov cx, 384
rep movsb
b) mov cx, 384
rep movsw
what is divide overflow error? complete following code such that it will cause divide overflow
error? (5 marks)
mov bl, ____
mov ax, ____
div bl, _____
In assembly language, why is it preferred to clear the stack by callee rather than caller? Explain
(5 marks)
How many bytes will be moved by each of the following block of codes? (3 marks)
a) mov cx, 384 (one filename is 384 bytes long)
rep movsb ( copy filename)
ye kesy solve krna hy Question?
Q:assembly code for Addition of AX=1010, CF= 1 , BX = 0111
Q: how division overflow occur??????? (2)
Q: why stack is LIFO? ? (3)
Q: Two statments are given. in ko attribute byte me convert krna tha . (3)
Q: assembly code for bubble sort (5)
Q: REP prefix types which are efficient in CMP?? (5)
Today Paper
Total Questions = 26
Total Marks = 40
Total MCQs of 1 Mark = 20
Short Subjective Question of 2 Marks = 2
Subjective Question of 3 Marks = 2
Subjective Questions of 5 Marks = 2
2 qs of 2 marks
1) a list was given and we have to select only bitwise operators
2) what will be the result of execution of the instruction of the instruction” LDS IS [BP +4]”?
2 qs of 3 marks
1) How many BYTES will be move by each of the following block of codes?
a) MOV cx,384 REP movsb
b) MOV cx,384 REP movsw
2) which instruction is used to swap the values?and what is the only limitation in this instruction?
2 qs of 5 marks
1) procedure about intrrupt
2)Replace the following invalid instruction with the single valid instruction
a. (a)mov IP
b. (b)mov IP,L5
c. sub sp, 2
mov [ss:sp], ax
If the decimal number “35” is shifted by two bit to left, the new value will be
o 35
o 70
o 140
o 17
(plz koi right answer bata sakta hai)
2)Replace the following invalid instruction with the single valid instruction
a. (a)mov IP
b. (b)mov IP,L5
c. sub sp, 2
mov [ss:sp], ax
write code to add two 32_biot numbers using extended addition (5)
A set of lines were given and i had to tell what would be teh Ax,Bx,Cx, Sp registers would look
like in code window (5)
Enlist the flags that may get effect through Div operation (3)
Working of Call function (3)
And best of luck for the rest! :)
My today's Cs401 paper!
20 Mcqs = 70 % were from past papers! (MOAZ FILE)
Q1) How 16-bit DIV operation is different from 32-bit DIV operation.? (2 marks)
Q2) Briefly illustrate the functionality of RETF? (2 marks)
Q3) How local variable can be created in an assembly program and which instructions are used
to create them? (3 marks)
Q4) Explain the purpose of the following two instructions used at the beginning of evey
procedure where parameters are passed through stack (3 marks)
bubblesort : PUSH BP
MOV BP, SP
Q5) Write a subroutine to calculate the string length?
Q6) write code of 32-bit extended subtraction.
explain the operatoin of IRET instruction using its micro code decription
write a program using subroutine that will add first five odd numbers and store some in Dx
explain the usage of REP prefix with an example
which register is used as an implies source operand for teh string instruction STOS.
how many types call instrucions are there mention also their name ? Cs401
salam mera aj cs401 ka paper 6 mcqs were new other are included in moaz file ..subjective are;
1.write a program that shows zero only on dos screen
2.video memory have two bytes define.
3.push and pop behavior
4.ek question mai after execution AL ki values batane thi
5.types of div instructions and ek yad nhe
Download