From 890119db3c49944b72636ef09c3d3a5e727f6b5d Mon Sep 17 00:00:00 2001 From: Wayne Warthen Date: Sat, 26 Dec 2020 10:46:29 -0800 Subject: [PATCH] Update sd.asm Fix for Issue #170. Correct use of OUT to OUT0 during CSIO speed change. Credit to Douglas Miller for finding this bug. Co-Authored-By: Douglas Miller <16920069+durgadas311@users.noreply.github.com> --- Source/HBIOS/sd.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/HBIOS/sd.asm b/Source/HBIOS/sd.asm index a45738ca..16c589d9 100644 --- a/Source/HBIOS/sd.asm +++ b/Source/HBIOS/sd.asm @@ -1045,7 +1045,7 @@ SD_INITCARD5: CALL SD_WAITTX ; MAKE SURE WE ARE DONE SENDING CALL DLY32 ; WAIT A BIT MORE FOR FINAL BIT XOR A ; ZERO MEANS MAX SPEED - OUT (Z180_CNTR),A ; NOW SET CSIO PORT + OUT0 (Z180_CNTR),A ; NOW SET CSIO PORT #ENDIF ; ; ISSUE SEND_CSD (TO DERIVE CARD CAPACITY)