php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assignment No. 02 Semester: Spring 2012 CS609: System Programming
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#2
Code:
#include <dos.h> #include <bios.h> #include <conio.h> void initialize (unsigned int far *com) { outportb ( (*com)+3, inport ((*com)+3) | 0x80); outportb ( (*com),0x60); outportb( (*com) +1, 0x00); outportb ( (*com)+3, 0x02); } void SelfTestOn(unsigned int far * com) { outportb((*com)+4,inport((*com)+4)|0x10); } void SelfTestOff(unsigned int far * com) { outportb( (*com)+4, inport((*com)+4) & 0xEf); } void writechar( char ch, unsigned int far * com) { while ( !((inportb((*com)+5) & 0x20) == 0x20)); outport(*com,ch); } char readchar( unsigned int far *com) { while (!((inportb((*com)+5) & 0x01)==0x01)); return inportb(*com); } unsigned int far *com=(unsigned int far*) 0x00400002; void main () { char ch = 0; int i = 1;int j= 1; char ch2='A'; initialize( com); SelfTestOn(com); clrscr(); while (ch!=64) { if (i==80) { j++; i=0; } if (j==13) j=0; gotoxy(i,j); ch=getche(); writechar(ch,com); ch2=readchar(com); gotoxy(80-i,j+14); putch(ch2); i++; } SelfTestOff (com); }
Allah Help those Who help them SelvesConfusedmileys44:
Reply


Messages In This Thread
Assignment No. 02 Semester: Spring 2012 CS609: System Programming - by sanam - 04-27-2012, 10:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,370 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,958 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,990 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,229 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,294 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 2,024 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,716 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,854 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,753 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,854 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support