Sunday 3 February 2008

System Level programming by c program



Important structure and union:




The header file dos.h defines two important structures and one union. They are:

1. struct BYTEREGS {

unsigned char al, ah, bl, bh;

unsigned char cl, ch, dl, dh;

   };



2. struct WORDREGS {

unsigned int ax, bx, cx, dx;

unsigned int si, di, cflag, flags;

   };



3. union REGS {

struct WORDREGS x;

struct BYTEREGS h;

  };




Note: Try to remember

No comments:

Post a Comment