; ==================================;
BIC.B #CS_SD,&SD_CSOUT ; set Chip Select low
; ----------------------------------;
-ComputePhysicalSector ; input = logical sector...
+;ComputePhysicalSector ; input = logical sector...
; ----------------------------------;
ADD &BS_FirstSectorL,W ;3
ADDC &BS_FirstSectorH,X ;3
; ----------------------------------;
BIC #3,S ; Clear read and write errors
BIS.B #CS_SD,&SD_CSOUT ; Chip Select high
- MOV @RSP+,PC ; W = 0
+ MOV @RSP+,PC ; W = 0 SR(Z) = 1
; ----------------------------------;
.IFDEF SD_CARD_READ_WRITE
CMP #BytsPerSec,X ; 2
JNZ WriteSectorLoop ; 2
; ----------------------------------;
-WriteSkipCRC16 ; CRC16 not used in SPI mode
+;WriteSkipCRC16 ; CRC16 not used in SPI mode
; ----------------------------------;
MOV #3,X ; PUT 3 times to skip CRC16
CALL #SPI_X_GET ; and to get data token in W
; ----------------------------------;
-CheckWriteState ;
+;CheckWriteState ;
; ----------------------------------;
BIC.B #0E1h,W ; apply mask for Data response
SUB.B #4,W ; data accepted