Skip to content

Commit

Permalink
SD Driver Bug Fix
Browse files Browse the repository at this point in the history
- Fixes a stupid bug I introduced in the previous change to sd.asm.  SD Card initialization could hang in previous release.
  • Loading branch information
wwarthen committed Aug 17, 2024
1 parent 457aa44 commit add41fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Source/HBIOS/sd.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1232,10 +1232,13 @@ SD_INITCARD4:
LD B,4 ; 4 BYTES OF OCR
LD HL,SD_BUF ; PUT IN OUR PRIVATE BUFFER
SD_INITCARD4B:
PUSH BC ; SAVE LOOP CONTROL
CALL SD_GET ; GET NEXT BYTE
POP BC ; RESTORE LOOP CONTROL
LD (HL),A ; SAVE IT
INC HL ; BUMP BUF PTR
DJNZ SD_INITCARD4B ; LOOP AS NEEDED
CALL SD_DONE ; FINISH THE TRANSACTION
;
#IF (SDTRACE >= 3)
; IF TRACING, DUMP THE OCR CONTENTS
Expand Down
2 changes: 1 addition & 1 deletion Source/ver.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#DEFINE RMN 5
#DEFINE RUP 0
#DEFINE RTP 0
#DEFINE BIOSVER "3.5.0-dev.66"
#DEFINE BIOSVER "3.5.0-dev.67"
#define rmj RMJ
#define rmn RMN
#define rup RUP
Expand Down
2 changes: 1 addition & 1 deletion Source/ver.lib
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ rmn equ 5
rup equ 0
rtp equ 0
biosver macro
db "3.5.0-dev.66"
db "3.5.0-dev.67"
endm

0 comments on commit add41fd

Please sign in to comment.