+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
CS609 Assignment 01 Fall 2020 Solution / Discussion Due Date: 26-11-2020
Problem Statement:
Write a C program that will print your Student ID using Memory Mapped I/O and interrupt 65H. (See
detailed instructions)
Detailed Instructions:
1) In this assignment, you will print your Student ID on the screen using Memory Mapped I/O and
programming 65H interrupt. The memory area for display device (monitor) starts at the
address B800:0000
2) The Attribute Byte for the characters of your Student ID will be calculated as follows:
a. If your Student ID ends with an Odd number (for example BC123456789), then Student
ID must be printed in Red background color and White foreground color
b. If your Student ID ends with an Even number (for example BC123456788), then Student
ID must be printed in Blue background color and White foreground color
3) In either case (Even or Odd), font must be Bold and there should be no blinking
4) The printing code must be implemented in interrupt 65H and you should generate this
interrupt from main() function
5) Write complete code in NotePad++ (or any editor of your choice) and compile/run it using
Turbo C++.
6) You must take Two screenshots:
a. Screenshot of Turbo C++ editor in which your program should be loaded
b. Screenshot after running the program which shows final output
NOTE:
• Printing with 21H/09H is not allowed. If used, you will be awarded ZERO marks
• ASCII Table is available on this link: http://www.asciitable.com/
• Link of Tutorial of how to compile/run in Turbo C++ is:
https://vulms.vu.edu.pk/Courses/CS609/Downloads/Turbo%20Cplusplus%2...
• Pasting clear screenshots is mandatory. If your assignment do
Tags:
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)
+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)CS609 Assignment#01 Solutions Files Check below
CS609-Assignment$#01-Solution-Fall-2020
CS609 Assignment No.1 2002
Solution:
//Header Files
#include<stdio.H>
#include<DOS.H>
#include<BIOS.H>
void interrupt (*oldint65)(); //To store current interrupt
char far *scr=(char far* ) 0xb8000000;
void interrupt newint65()(void); //NewInt prototype
void main()
{
oldint65 = getvect(0x65);
clrscr();
setvect(0x65, newint65);
geninterrupt(0x65);
getch();
setvect(0x65, newint65);
}
Void interrupt newint65()
{
*scr=8;
(*scr)=0x4D;
(*(scr+1))=0x17;
(*(scr+2))=0x43;
(*(scr+3))=0x17;
(*(scr+4))=0x31;
(*(scr+5))=0x17;
(*(scr+6))=0x39;
(*(scr+7))=0x17;
(*(scr+8))=0x30;
(*(scr+9))=0x17;
(*(scr+10))=0x34;
(*(scr+11))=0x17;
(*(scr+12))=0x30;
(*(scr+13))=0x17;
(*(scr+14))=0x36;
(*(scr+15))=0x17;
(*(scr+16))=0x34;
(*(scr+17))=0x17;
(*(scr+18))=0x30;
(*(scr+19))=0x17;
(*(scr+20))=0x34;
(*(scr+21))=0x17;
}
is solution me ye point cover ni ho rha
3) In either case (Even or Odd), font must be Bold and there should be no blinking
turbo dwnload krna ho to....
https://developerinsider.co/downloading/?download=https://github.co...
CS609 Correction Solution File
Click on the below link to download the file
Getting 5 errors. Could someone please share right code??
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post