cs609 Assignment Solution
cs609 Assignment Solution
https://www.youtube.com/channel/UCrzG
IUncG2msXSx7iFcZW7g?
sub_confirmation=1
Playlist:
https://www.youtube.com/watch?
v=liZvHjg-
Srw&list=PLclnjitLbdI5Bjf2V2UA8JUG-
OEz6Jvl-
Question No 1
Solution
Question No 2
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
Thanks for Watching