Hi Michael, Big compliments, as you have achieved the next to impossible, even if it still has some trouble with NIOS,DOS4/GW,...
I never thought it possible to make EMM386 VCPI compatible at all. on VCPI memory allocation: (I'm not an expert in VCPI) IMO setting aside 256K on a 4M maschine (if they still exist) 512 on 8M and 1M for everything else for VCPI's exclusive use shouldn't trouble anyone, but still give VCPI enough memory to be usable Scanning for EPROMS: IMO, the scanning should be: /* scan for ROMS */ for (mem = 0xc000; mem < 0xf000;) { uint romsize; uchar far *pmem = MK_FP(mem,0); if ( pmem[0] != 0x55u || pmem[1] != 0xaau) { /* no adapter EPROM */ mem += 2048/16; /* advance by 2K */ continue; } - romsize = pmem[2] / 2; +***** if (pmem[2] == 0) romsize = 2; /* there was a valid EPROM signiture !! */ else { /* By definition, EPROMS are located on 2K boundaries. so in any case, the search pointer must remain 2K-aligned */ romsize = ((uint)pmem[2] + 3) / 4 * 2; } +***** if (startup_verbose) printf("EPROM at %p, size %u KB\n", pmem, romsize); /* romsize given in 512 byte*/ for ( i = 0; i < romsize; i+=2) { SetMemoryType(mem,'E'); mem += 2048/16; /* advance by 2K */ } } with big compliments tom ------------------------------------------------------- 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