We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af5011b commit 2ac9a10Copy full SHA for 2ac9a10
hw/vga/mcgacapm.c
@@ -225,6 +225,22 @@ void dump_to_file(int automated) {
225
pop ax
226
}
227
228
+
229
+ /* ============= BIOS data area ============ */
230
+#if TARGET_MSDOS == 32
231
+ for (i=0;i < 256;i++) rdump[i] = *((uint8_t*)(0x400+i));
232
+#else
233
+ for (i=0;i < 256;i++) rdump[i] = *((uint8_t far*)MK_FP(0x40,i));
234
+#endif
235
236
+ /* ----- write */
237
+ sprintf(tmpname,"%s.BDA",nname);
238
+ if ((fp=fopen(tmpname,"wb")) != NULL) {
239
+ fwrite(rdump,256,1,fp);
240
+ fclose(fp);
241
+ }
242
243
+ /* resume */
244
vga_moveto(0,6);
245
vga_sync_bios_cursor();
246
0 commit comments