At 09:07 PM 3/9/2004 +0000, Bart Oldeman wrote:

>If you can compile emm386 yourself you should change
>
>romsize = pmem[2] / 2;
>
>by
>
>romsize = (pmem[2] + 1) / 2;
>
>in EMM386C.C.

I'm thinking pmem[2] / 2 + 1 would be better in case ever a 0ffh byte value was 
encountered.  Or else cast pmem[2]to an unsigned int before the calculations.   Or 
does a EPROM running to size 127.5K even exist on PCs?




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to