Hi! 15-Авг-2004 20:24 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]:
>> - lr.BH = OEM_ID; >> - lr.CH = REVISION_MAJOR; /* JPP */ >> - lr.CL = REVISION_MINOR; >> - lr.BL = REVISION_SEQ; >> + lr.BX = (OEM_ID << 8) | REVISION_SEQ; >> + lr.CX = 0; /* serial number must be 0 or buggy 32RTM thrashes BO> tabs?). There's also a pointless "optimization", that the compiler can do BO> for us as well. "Can" != to "will" and/or "my". Yes, Watcom (but not, say, Borland) (sometime) may join adjacent memory writes into memory, but there writes into BX are interspersed. Also, to make more readable code, I add macro MK_UWORD(): "lr.BX = MK_UWORD (OEM_ID, REVISION_SEQ);". ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel