Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug in MAPDRV and a bug in the MFRSD kernel regarding DEV_STATUS routine #119

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion source/kernel/bank4/partit.mac
Original file line number Diff line number Diff line change
Expand Up @@ -3137,7 +3137,7 @@ MAP_SPECIFIC:

MAP_DRV_UNK:
;Unknown change status: assume unchanged media.
;If it has changed, the boot checksum checksum
;If it has changed, the boot checksum
;mechanism will do the work of unassigning
;all other drives mapped to this device
;if necessary.
Expand All @@ -3147,6 +3147,7 @@ MAP_DRV_UNK:
MAP_DRV_CH:
push hl
push iy
push bc
ld e,(hl)
inc hl
ld d,(hl)
Expand All @@ -3156,6 +3157,7 @@ MAP_DRV_CH:
ld d,(iy+2)
ld e,(iy+3)
call UNMAPALL
pop bc
pop iy
pop hl

Expand Down
5 changes: 4 additions & 1 deletion source/kernel/drivers/MegaFlashRomSD/mfrsd.asm
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ DEV_RW:

;ld hl,(#f9f0)
;inc hl
;ld (#f9f0),hl ; Cuenta lecturas
;ld (#f9f0),hl ; Count reads

call SD_OFF
ei
Expand All @@ -677,6 +677,9 @@ DEV_RW:
ret

.ok:
;A successful device access must reset the "device changed" flag
res BIT_SD_CHG,(ix+STATUS)

xor a ; Ok
ret

Expand Down