CS609 ASSIGNMENT 1 SOLUTION 2021

CS609 ASSIGNMENT 1 SOLUTION 2021 LEARNINGSTECH.COM

CS609 ASSIGNMENT 1 SOLUTION 2021.

Question No1

Solution Code

#include <dos.h>       // for intdos() and union REGS

#include <stdio.h>       // for printf ()

union REGS inregs, outregs;

void mian()

{

inregs.h.ah = 0x6;

inregs.h.al = 0x0;

intdos(&inregs, &outregs);

if(regs.x.cflag==1)

printf(“your Student here”);

else

printf(“your Name”);

getch();

}

Question No 2 CS609 ASSIGNMENT 1 SOLUTION 2021

Solution

#include <dos.h> // for intdos() and union REGS

#include <stdio.h> // for printf ()

union REGS regs;

void mian(void)

{

regs.h.al = 0x116;

regs.h.ah = 0x10;

printf(“%x”, regss.x.ax);

}

Output: 10116

 

Dear students join my telegram group for all assignments, GDBs and Quizzes Solutions. Thanks Join this https://t.me/VUALLINONE

WHATSAPP GROUP LINK:

HTTPS://CHAT.WHATSAPP.COM/LUILDOI6BFP291O0RJAKE0

CS609 ASSIGNMENT 1 SOLUTION 2021

SEE ALSO:

DOWNLOAD LINK IS AVAIALBLE AT TEH END OF THE PAGE

Your download will begin in 60 seconds

CS609 ASSIGNMENT 1 SOLUTION SPRING 2021.

Downlaod papers from link available on the bottom of the page.

PLEASE WAIT 60 SECONDS TO OPEN YOUR REQUIRED DOCUMENT THANKS

CS609 ASSIGNMENT 1 SOLUTION 2021

vu all midterm past papers solved by moaaz

Downlaod past papers from here

GET VU current paper 2021

Subjects wise papers

Methods of i/o. Inside the 3 layered technique if we are following the first technique we need to software the hardware. The hardware may be programmed to perform i/o in three approaches i.E. In case of programmed i/o the cpu constantly exams the i/o tool if the i/o operation may be performed or now not. CS609 ASSIGNMENT 1 SOLUTION 2021

If the i/o operations can be done the cpu performs the computations required to finish the i/o operation and on the other hand starts watching for the i/o tool so that you can carry out next i/o operation. On this way the cpu remains tied up and is not doing some thing else except waiting for the i/o device to be idle and performing computations only for the slower i/o device. In case of interrupt pushed the failings of programmed pushed i/o are rectified. CS609 ASSIGNMENT 1 SOLUTION 2021

The processor does now not take a look at the i/o tool for the capability of acting i/o operation as an alternative the i/o tool informs the cpu that it’s idle and it can perform i/o operation, as a end result the execution of cpu is interrupted and an interrupt provider ordinary (isr) is invoked which performs the computations required for i/o operation. After the execution of isr the cpu continues with some thing it became doing earlier than the interruption for i/o operation. CS609 ASSIGNMENT 1 SOLUTION 2021

On this way the cpu does no longer continue to be tied up and can carry out computations for different strategies while the i/o gadgets are busy performing i/o and therefore is greater most suitable. Normally it takes two bus cycles to transfer facts from some i/o port to reminiscence or vice versa if this is completed via a few processor sign up. This transfer time can be reduced bypassing the cpu as ports and memory device are also interconnected through system bus. This is accomplished with the assist of dma controller. CS609 ASSIGNMENT 1 SOLUTION 2021

The dma (direct memory get admission to) controller can controller the buses and as a result the cpu may be Bypassed facts item can be transferred from memory to ports or vice versa in a single bus cycle. CS609 ASSIGNMENT 1 SOLUTION 2021

Related Posts

%d bloggers like this: