simple macros can be defined to access low and high bits of CPU registers. If you feel like making some for me, feel free :-).
On 6/11/06, Arkady V.Belousov <[EMAIL PROTECTED]> wrote: > 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, ®s); > 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 > -- Fall is my favorite season in Los Angeles, watching the birds change color and fall from the trees. David Letterman (1947 - ) See ya _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
