- for(i=0xA0;i<0x100;i++) {
- MM_Map( i * 0x1000, i * 0x1000 );
+ for(unsigned int i = 0xA0;i<0x100;i++) {
+ MM_RefPhys(i * 0x1000);
+ MM_Map( (void*)(i * 0x1000), i * 0x1000 );
+ }
+ MM_RefPhys(0);
+ MM_Map( (void*)0, 0 ); // IVT / BDA
+ if( MM_GetRefCount(0x00000) > 2 ) {
+ Log_Notice("VM8086", "Ok, who's touched the IVT? (%i)",
+ MM_GetRefCount(0x00000));