From: Will Sowerbutts Date: Sat, 31 Jan 2015 00:07:36 +0000 (+0000) Subject: n8vem-mark4: devsdspi - save another two bytes! collect the whole set! X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=27aa39de823794b2a85ae8887408b3670b20b4ea;p=FUZIX.git n8vem-mark4: devsdspi - save another two bytes! collect the whole set! --- 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