aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--adv.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/adv.inc b/adv.inc
index 989b4e0b..e1f65270 100644
--- a/adv.inc
+++ b/adv.inc
@@ -90,6 +90,9 @@ adv_init:
; Initialize the ADV data structure in memory
;
adv_verify:
+ cmp byte [ADVDrive],-1 ; No ADV configured, still?
+ je .reset ; Then unconditionally reset
+
mov si,adv0
call .check_adv
jz .ok ; Primary ADV okay
@@ -98,6 +101,7 @@ adv_verify:
jz .adv1ok
; Neither ADV is usable; initialize to blank
+.reset:
mov di,adv0
mov eax,ADV_MAGIC1
stosd