25-10-2016, 11:28 AM
1461003827-FinalExamOralQuestionsonMIL.pdf (Size: 95.88 KB / Downloads: 6)
Assignment No.1 ( Addition of N-Hex Numbers)
Q1. Differentiate the macro and procedure.
Q2. Explain accept_16 and display_16 procedure.
Q3. What is mean by add 30H and Sub 30H
Q4. what is mean by data types ?
Q5. Explain 64 and 32 bit print, read and exit macro
Q6. what is ASCII value of 0, A and a ?
Q7. what are the conditional instructions ?
Q8. what is mean by XOR operation ?
Q9. when carry is generated ?
Q10. How the addition result is stored in ansl and ansh
Q11. When carry is generated then what happens ?
Q12. What is mean by byte, word, dword, qword ?
Q13. One dword means how many bits ? And how many digits ?
Q14. What is mean by DIV operation ?
Q15. What is mean by HEX to ASCII conversion and ASCII to HEX conversion ?
Q16. Why we take RBX = 16 in display procedure ?
Q17. What is mean by SUB30, SUB37 and SUB57 ?
Assignment No.2
(Non-overlapped / Overlapped Block transper with/without instruction)
2a : Non-Overlapped Block transper without string instruction
Q1. What is the output of Source block and Destination block for Before block transfer and After
block transfer ?
Q2. What is the difference between Non-overlapped and Overlapped block transfer without string
instruction (explain with block diagrams)
Q3. what are the values in rsi , before block transfer in source block and destination block
Q4. How the elements are transfer in Non-overlapped block tranfer without string instruction ?
Q5. Explain BT_NO procedure .
Q7. Explain disp_block procedure .
Q8. For transfering the elements in destination block , RSI and RDI points to which location of
source block and destination block ?
Q9. what is mean by with string instruction and without string instruction ?
2b : Non-Overlapped Block transper with string instruction
Q1. What is the output of Source block and Destination block for Before block transfer and After
block transfer ?
Q2. What is the difference between Non-overlapped and Overlapped block transfer with string
instruction (explain with block diagrams)
Q3. what are the values in rsi , before block transfer in source block and destination block ?
Q4. How the elements are transfer in Non-overlapped block tranfer with string instruction ?
Q5. Explain BT_NOS procedure .
Q7. Explain disp_block procedure .
Q8. For transfering the elements in destination block , RSI and RDI points to which
Prof. Vishal Wagh
location(address) of source block and destination block?
Q9. What is mean by with string instruction and without string instruction ?
Q10. What is mean by REP , MOVSB , CLI ?
2c : Overlapped Block transper without string instruction
Q1. What is the output of Source block and Destination block for Before block transfer and After
block transfer ?
Q2. What is the difference between Non-overlapped and Overlapped block transfer without string
instruction (explain with block diagrams)
Q3. what are the values in rsi , before block transfer in source block and destination block
Q4. How the elements are transfer in Overlapped block tranfer without string instruction ?
Q5. Explain BT_O procedure .
Q7. Explain disp_block procedure .
Q8. For tranfering the elements in destination block , RSI and RDI points to which location of
source block and destination block ?
Q9. what is mean by with string instruction and without string instruction ?
Q10. What is mean by dstblk-2 ?
Q11. What is mean by srcblk+4, dstblk+2 ?
Q12. Before block transfer destination block starts from which position ?
Q13. How the block is overlapped ?
Q14. Why srcblk+3 and dstblk-2 are same ?
2d : Overlapped Block transper with string instruction
Q1. What is the output of Source block and Destination block for Before block transfer and After
block transfer ?
Q2. What is the difference between Non-overlapped and Overlapped block transfer with string
instruction (explain with block diagrams)
Q3. what are the values in rsi , before block transfer in source block and destination block
Q4. How the elements are transfer in Overlapped block tranfer with string instruction ?
Q5. Explain BT_OS procedure .
Q7. Explain disp_block procedure .
Q8. For tranfering the elements in destination block , RSI and RDI points to which location of
source block and destination block?
Q9. what is mean by with string instruction and without string instruction ?
Q10. What is mean by dstblk-2 ?
Q11. What is mean by srcblk+4, dstblk+2 ?
Q12. Before block transfer destination block starts from which position ?
Q13. How the block is overlapped ?
Q14. Why srcblk+3 and dstblk-2 are same ?
Q15. What is mean by REP, MOVSB and STI ?
Assignment No. 3 (HEX to BCD and BCD to HEX number conversion )
Q1. what is mean by HEX number and BCD number ?
Q2. How to convert HEX number into BCD number ?
Q3. How to convert BCD number into HEX number ?
Q4. what is the formula for BCD to HEX number conversion ?
Q5. Explain stack operation for both the conversions.
Q6. Explain HEX to BCD procedure
Q7. Explain BCD to HEX procedure
Q8. what is mean by sub 30H ?
Q9. Explain accept16 and display16 procedure
Q10. Explain add, sub, mul and div operation.
Q11. What is mean by PUSH and POP operations of Stack ?
Assignment No. 4 (String operations 1. Calculate length
2. Reverse
3. check palindrome)
Q1. How to calculate length of string ?
Q2. How to convert string into reverse string (where RSI and RDI are point to the string) ?
Q3. What is mean by palindrome string ?
Q4. Why we decrement RAX by one for calculating length of string
Q5. How RSI points to the last character of the string ? Why we decrement RSI by one ?
Q6. How to check the string is palindrome ?
Q7. Why we decrement counter by half (explain SHR operation)
Q8. How the comparision is less for checking whether the string is palindrome
Q.9 Explain :
add rsi, rcx
dec rsi (Here why we decrement rsi by one , explain ?)
shr rcx,1
Q10. Explain accept_16 procedure .
Assignment No. 5 (Multiplication Using 1. Successive addition and
2. Shift and add method)
Q1. what is the difference between successive addition and shift and add method ?
Q2. what is mean by ebp in shift and add method ? Explain the Shift and add procedure.
Q3. What is mean by SHL, XOR, DIV, ADD opearion ?
Assignment No. 6 (String manipulations using FAR procedures
1. concatenation of string
2. Find the substring in given string)
Q1. How to call the procedures using switch case ?
Q2. How to concatenate the two different strings ?
Q3. what is mean by CUR_ADDR and END_ADDR, why we used ?
Q4. what is the use of REP MOVSB for string concatenation ?
Q5. why we require str3 and str3_Size ?
Q6. How the END_ADDR points to the end of the string ?
Q7. why we compare CUR_ADDR and END_ADDR ?
Q8. How to store substring count in ss_count ?
Q9. How this instruction works , REPE CMPSB ?
Assignment No. 7
( Different types of Waves generation ..forword, backword, staircase , etc.)
Q1. what are the values of 8255-DAC for different ports (Port A, Port B, Port C and CWR)
Q2. what is mean by 80 H, how it comes ? Draw the control word format for it .
Q3. what is mean by OUT 67H, AL ?
Q4. what is mean by INT3 instruction
Q5. when we increment the AL ?
Q6. explain the logic for all the wave generation (how to display straight verticle line, why we give
delay, why we increment/decrement AL)
Q7. write the delay code and what happens when we give delay ?
Q8. write the code for following waveform