We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ 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


+ 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)


Views: 1826

Replies to This Discussion

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

#Hamza kia apny assignment bna li??

CS609 Correction Solution File 

Click on the below link to download the file

CS609-Correct-Solution-Assignment#01

Getting 5 errors. Could someone please share right code??

RSS

Looking For Something? Search Below

Latest Activity

Rabia liked + M.Tariq Malik's discussion BIF401 Bioinformatics I GDB Fall 2020 Solution / Discussion
14 minutes ago
Rabia liked + M.Tariq Malik's profile
16 minutes ago
★彡[ꜱʜʏɴᴀ]彡★ liked + ! ! hคຖiค khคຖ ! ! ! +'s discussion 'Ghar Se Hum Ghar Talak Gaye Honge, Apne Hee Aap Tak Gaye Honge',
6 hours ago
+ ! ! hคຖiค khคຖ ! ! ! + liked + M.Tariq Malik's discussion Free Download Solved MCQs of Pakistan Affairs - Everyday Science - Current Affairs For MCQs for CSS, NTS, FTS, ETEA, OTS, UTS, FPSC, PPSC, SPSC, PMS, PSC, KPKPSC, AJKPSC, SOPE Exam
6 hours ago
+ ! ! hคຖiค khคຖ ! ! ! + liked + ! ! hคຖiค khคຖ ! ! ! +'s discussion 'Ghar Se Hum Ghar Talak Gaye Honge, Apne Hee Aap Tak Gaye Honge',
6 hours ago
+ ! ! hคຖiค khคຖ ! ! ! + posted a discussion
6 hours ago
VU AHMED replied to + M.Tariq Malik's discussion PHY301 Fall 2017 Final Term Papers Pattern & Questions 17 Feb 2018 to 28 Feb 2018 & Helping Material in the group PHY301 Circuit Theory
6 hours ago
+ ! ! hคຖiค khคຖ ! ! ! + updated their profile
6 hours ago
+ M.Tariq Malik liked + + + + " Tw!nkle "'s discussion Happy HAppy birthday !! FIYA
8 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion EDU410 Teaching of Literacy Skills Assignment 01 Fall 2020 Solution / Discussion in the group EDU410 Teaching of Literacy Skills
8 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion EDU410 Teaching of Literacy Skills Assignment 01 Fall 2020 Solution / Discussion in the group EDU410 Teaching of Literacy Skills
8 hours ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion EDU410 Teaching of Literacy Skills Assignment 01 Fall 2020 Solution / Discussion
8 hours ago

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

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

.