We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>


Looking For Something at vustudents.ning.com? Click Here to Search

CS609 System Programming Assignment No. 01 Solution and Discussion Spring 2014 Due Date 09/May/2014

 Assignment No. 01
Semester: Spring 2014
System Programming-CS609

 

Total Marks: 20

 

Due Date: 09/May/2014

 

Instructions:

Please read the following instructions carefully before submitting assignment:

 

  • You will submit your assignment before or on due date on VU-LMS.
  • Assignment should be completed by your own efforts it should not be copied from internet, handouts or books.
  • You should submit your .doc File via assignment interface at VU-LMS.
  • Assignment sent via Email will not be replied and accepted/graded in any case.
  • If the submitted assignment does not open or file is corrupt, it will not be graded.
  • You will submit solution only in document (.doc or .docx) File.

 

Objectives:

 

To understand the use of ISR and its services.

 

 

For any query about the assignment, contact at cs609@vu.edu.pk

Assignment Questions

 

Question 1:                                                                                                                               Marks 10     

 

Answer the following questions precisely. Do not include irrelevant data in your answers. Any answer with more than three lines will neglect your marks. (2 marks for each)

Q1. Where are the interrupt vectors located in the microprocessors memory?

Q2. Which interrupt vectors are reserved by Intel?

Q3. Explain the operation of IRET instruction.

Q4. List the events that occur when an interrupt becomes active.

Q5. Explain the purpose of the trap flag (TF).

 

Question 2:                                                                                                                               Marks 10     

 

Write a C program that should write the value of 'z' in the keyboard buffer whenever the letter 'a' is pressed from keyboard.

 

 

BEST OF LUCK

+ Click Here To Join also Our facebook study Group.

..How to Join Subject Study Groups & Get Helping Material?..


See Your Saved Posts Timeline

Views: 8100

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

 

Explain the purpose of the trap flag (TF).

The Trap Flag is mainly used for debugging purposes virtualian.ning.com.Trap Flag is used for on-chip debugging. Debuggers can use it for step-by-step execution of a computer program. virtualian.ning.com If 8086 does a type-1 interrupt, Trap Flag is reset. virtualian.ning.com Therefore, the single-step mode will be disabled during the interrupt-service procedure.

Explain the operation of IRET instruction.?

In Real Address Mode, iret pops CS, the flags register, and the instruction pointer from the stack and resumes the routine that was interrupted. In Protected Mode, the setting of the nested task flag (NT) determines the action of iret. The IOPL flag register bits are changed when CPL equals 0 and the new flag image is popped from the stack.

iret returns from an interrupt procedure without a task switch if NT equals 0. virtualian.ning.com Returned code must be equally or less privileged than the interrupt routine as indicated CS selector virtualian.ning.com RPL bits popped from the stack virtualian.ning.com. If the returned code is less privileged, iret pops SS and the stack pointer from the stack.

iret reverses the operation of an INT or CALL that caused the task switch if NT equals 1. virtualian.ning.com The task executing iret is updated and saved in its task segment. virtualian.ning.com The code that follows iret is executed if the task is re-entered.

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

plz 2nd question koi share karay, koi example share kar dain

 Check the example from Book Page :-35 for 2nd question..

QUESTION#2

#include <dos.h>
#include <bios.h>
#include <stdio.h>
void interrupt (*oldint15) ( );
void interrupt newint15(unsigned int BP, …, flags);
void main ( )
{
oldint15 = getvect (0x15);
setvect (0x15, newint15);
keep (0, 1000);
}

{if (*(((char*)&AX) + 1) == 0x4F )
{
if (*((char*)&AX) == 0x2C)
*(((char*)&AX)) = 0x1E;
else if (*((char*)&AX) == 0x1E)
*((char*)&AX) = 0x2C;
}
else
(*oldint15)();

}

Wrong solution,,

You can check it in Borland C or Borland C++ software, download and install it and compile and run it...

yr i installed the software successfully but program is not running

khud sko samajh aa gai hai to dusron ko b samjha dain ab :/

RSS

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service