Hi!

11-Июн-2006 02:02 [EMAIL PROTECTED] (Blair Campbell) wrote to
[EMAIL PROTECTED]:

BC> +++ ver.c   11 Jun 2006 02:02:07 -0000      1.37
BC> +        struct REGPACK regs;
BC> +        regs.r_ax = 0x3000;
BC> +        intr(0x21, &regs);
BC> +        displayString(TEXT_MSG_VER_DOS_VERSION, regs.r_ax & 0xFF, 
regs.r_ax >> 8);

      intr() is bad, because REGPACK doesn't allows to access registers parts
(for example, AL/AH), and this causes noticeably inefficient and unreadable
code. Why not use int86(), which you already used in other places?


_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to