From 673a65dec34fd4c8bbba30b151951717a5a97eef Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sat, 11 Jul 2020 07:18:58 +0800 Subject: [PATCH] ao486: do not try fdd boot if not mounted. --- support/x86/x86.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/x86/x86.cpp b/support/x86/x86.cpp index 0eb420c..7bc00b6 100644 --- a/support/x86/x86.cpp +++ b/support/x86/x86.cpp @@ -634,7 +634,7 @@ void x86_init() 0x00, //0x2B: hd 1 configuration 8/9; landing zone high 0x00, //0x2C: hd 1 configuration 9/9; sectors/track - (boot_from_floppy)? 0x20u : 0x00u, //0x2D: boot sequence + (boot_from_floppy && get_image(IMG_TYPE_FDD0)->size)? 0x20u : 0x00u, //0x2D: boot sequence 0x00, //0x2E: checksum MSB 0x00, //0x2F: checksum LSB