Browse Source

ch376-native: fixed usb scsi/ufi issue with reading/writing more than 512 bytes in one invocation

pull/592/head
Dean Netherton 10 months ago
parent
commit
b7234d339a
  1. 4
      Source/HBIOS/ch376scsi.asm
  2. 2
      Source/HBIOS/ch376ufi.asm

4
Source/HBIOS/ch376scsi.asm

@ -97,8 +97,8 @@ CH_SCSI_READ:
push iy
call _scsi_read
ld a, l
pop hl
pop iy
pop hl
ld bc, 512
add hl, bc
ret
@ -128,8 +128,8 @@ CH_SCSI_WRITE:
push iy
call _scsi_write
ld a, l
pop hl
pop iy
pop hl
ld bc, 512
add hl, bc
ret

2
Source/HBIOS/ch376ufi.asm

@ -126,8 +126,8 @@ CH_UFI_WRITE:
push iy
call _chufi_write
ld a, l
pop hl
pop iy
pop hl
ld bc, 512
add hl, bc
ret

Loading…
Cancel
Save