From 27aa39de823794b2a85ae8887408b3670b20b4ea Mon Sep 17 00:00:00 2001 From: Will Sowerbutts Date: Sat, 31 Jan 2015 00:07:36 +0000 Subject: [PATCH] n8vem-mark4: devsdspi - save another two bytes! collect the whole set! --- Kernel/platform-n8vem-mark4/devsdspi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Kernel/platform-n8vem-mark4/devsdspi.c b/Kernel/platform-n8vem-mark4/devsdspi.c index f4a86327..4fd88f36 100644 --- a/Kernel/platform-n8vem-mark4/devsdspi.c +++ b/Kernel/platform-n8vem-mark4/devsdspi.c @@ -146,8 +146,7 @@ waitrx: ld bc, #512 ; sector size or a push af ; stash is_user flag now in Z bit (we cannot load it again after we remap) - jr z, rxnextbyte - call map_process_always ; map user process + call nz, map_process_always ; map user process rxnextbyte: dec bc ; length-- ld a, b @@ -196,8 +195,7 @@ bool sd_spi_transmit_sector(uint8_t drive) __naked ld hl, #512 ; sector size or a push af ; stash is_user flag now in Z bit (we cannot load it again after we remap) - jr z, gotransmit - call map_process_always ; map user process + call nz, map_process_always ; map user process gotransmit: in0 a, (_CSIO_CNTR) and #0xDF ; mask off RE bit -- 2.34.1