From b7234d339a5d72d85df58c6e00285416fe047731 Mon Sep 17 00:00:00 2001 From: Dean Netherton Date: Thu, 17 Apr 2025 09:48:56 +1000 Subject: [PATCH] ch376-native: fixed usb scsi/ufi issue with reading/writing more than 512 bytes in one invocation --- Source/HBIOS/ch376scsi.asm | 4 ++-- Source/HBIOS/ch376ufi.asm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/HBIOS/ch376scsi.asm b/Source/HBIOS/ch376scsi.asm index df82a184..31c71dfc 100644 --- a/Source/HBIOS/ch376scsi.asm +++ b/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 diff --git a/Source/HBIOS/ch376ufi.asm b/Source/HBIOS/ch376ufi.asm index 330db5a3..07a85a6d 100644 --- a/Source/HBIOS/ch376ufi.asm +++ b/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