It looks like you're new here. If you want to get involved, click one of these buttons!
CS609 Assignment 1 IDEA Solution of (Dear student change it as per assignment) ---------------------------- #include<BIOS.H> #include<DOS.H> char st1[80] ={"Virtual University of Pakistan$"}; char st2[80] ={"Washi Ali$"}; char st2[80] ={"Tufail$"}; void interrupt (*oldint65)( ); void interrupt newint65( ); void main() { oldint65 = getvect(0x65); setvect(0x65, newint65); keep(0, 1000); } void interrupt newint65( ) { switch (_AH) { case 0: _AH = 0x09; _DX = (unsigned int) st1; geninterrupt (0x21); break; case 1: _AH = 0x09; _DX = (unsigned int) st2; geninterrupt (0x21); break; case 2: _AH = 0x09; _DX = (unsigned int) st3; geninterrupt (0x21); break; } } }
Comments
this is 100% correct or not
q.1 Function of interrupt ID Register in UART (marks 3)
q.2 (in BIOS data area) write address of Keyboard Status Byte ( marks 3)
q.3 draw the diagram of Keyboard interface (marks 5)
q.4 write name of 5 registers used in UART (marks 5)
q.5 write two types of interrupts along one difference between them (marks 5)