- else {
- rem --;
- if(rem == 0) // Goodie, there's a gap
- {
- for( j = 0; j < nBlocks; j++ )
- State->Internal->AllocatedPages[i].Bitmap |= 1 << (base + j);
- *Segment = State->Internal->AllocatedPages[i].PhysAddr / 16 + base * 8;
- *Offset = 0;
- //Log_Debug("VM8086", "Allocated at #%i,%04x", i, base*128);
- return (void*)( State->Internal->AllocatedPages[i].VirtBase + base * 128 );
- }
+
+ rem --;
+ if(rem == 0) // Goodie, there's a gap
+ {
+ for( j = 0; j < nBlocks; j++ )
+ State->Internal->AllocatedPages[i].Bitmap |= 1 << (base + j);
+ *Segment = State->Internal->AllocatedPages[i].PhysAddr / 16 + base * 8;
+ *Offset = 0;
+ LOG("Allocated at #%i,%04x", i, base*128);
+ LOG(" - %x:%x", *Segment, *Offset);
+ return (void*)( State->Internal->AllocatedPages[i].VirtBase + base * 128 );