From 79bdc2d51f1bf67830ef6fcde3e6cc6bf9c72bfa Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Fri, 20 Nov 2020 19:19:55 +0100
Subject: [PATCH] Set correct prerequisite.
See https://github.com/cc65/cc65/issues/1318
---
libsrc/geos-common/disk/calcblksfree.s | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libsrc/geos-common/disk/calcblksfree.s b/libsrc/geos-common/disk/calcblksfree.s
index 520c8ca61..5d7b98aba 100644
--- a/libsrc/geos-common/disk/calcblksfree.s
+++ b/libsrc/geos-common/disk/calcblksfree.s
@@ -13,6 +13,10 @@
.include "geossym.inc"
_CalcBlksFree:
+ lda #curDirHead
+ sta r5L
+ stx r5H
jsr CalcBlksFree
stx __oserror
lda r4L