Skip to content

Commit 2ac9a10

Browse files
MCGA too
1 parent af5011b commit 2ac9a10

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

hw/vga/mcgacapm.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,22 @@ void dump_to_file(int automated) {
225225
pop ax
226226
}
227227
}
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 */
228244
vga_moveto(0,6);
229245
vga_sync_bios_cursor();
230246

0 commit comments

Comments
 (0)