]> cloudbase.mooo.com Git - avrcpm.git/blobdiff - avrcpm/avr/mmc.asm
* Merged fat16-test back into trunk.
[avrcpm.git] / avrcpm / avr / mmc.asm
index e3d75eb2d3e5192225dab2a64374d62d04366184..f43af1c86a330a80857ba09adfd9f98b43b00798 100644 (file)
@@ -591,16 +591,16 @@ mmc_rdex:
 .endif
        ret
 
-\r
+
 ;--------------------------------------------------------------
-; Read word \r
-; TODO: Read Word to ZL,ZH at given ZL/ZH Offset\r
-; Need for reading of single FAT16 Entrys without killing the\r
-; Entrys in hostbuffer...\r
+; Read word 
+; TODO: Read Word to ZL,ZH at given ZL/ZH Offset
+; Need for reading of single FAT16 Entrys without killing the
+; Entrys in hostbuffer...
 ;
 ;      in      zh,zl:          Pointer to Word within the Sector to read       
 ;   in yh..xl: Start sector number (LBA)
-;      out     zh,zl   : word thats been read\r
+;      out     zh,zl   : word thats been read
 
 mmcReadWord:
 .if MMC_DEBUG > 1
@@ -616,7 +616,7 @@ mmcReadWord:
        lds             temp,mmcCardType
        sbrs    temp,log2(CT_BLOCK)
        rcall   mul_yx_512              ;Convert to byte address  (*512)
-\r
+
        ldi             temp2,CMD17
        rcall   mmcCmd
        ldi             temp2,RES_ERROR
@@ -644,30 +644,30 @@ mmc_rcvw_start:
 mmc_rcvw_rl:
        sbiw    yl,1
        breq    mmc_rcvw_rle
-       cp              zl,_0\r
-       cpc             zh,_0\r
-       breq    mmc_rcvw_sto\r
-\r
-       sbiw    zl,1\r
+       cp              zl,_0
+       cpc             zh,_0
+       breq    mmc_rcvw_sto
+
+       sbiw    zl,1
        spi_waitm
        in              temp,SPDR
        out             SPDR,_255
        rjmp    mmc_rcvw_rl
 
-mmc_rcvw_sto:\r
-       mov     zl,temp\r
+mmc_rcvw_sto:
+       mov     zl,temp
        spi_waitm
        in              temp,SPDR
        out             SPDR,_255
-       mov     zh,temp\r
-\r
+       mov     zh,temp
+
 mmc_rcvw_rl2:
        sbiw    yl,1
        breq    mmc_rcvw_rle
        spi_waitm
        in              temp,SPDR
        out             SPDR,_255
-       rjmp    mmc_rcvw_rl2\r
+       rjmp    mmc_rcvw_rl2
 mmc_rcvw_rle:
        rcall   spi_wait                ;      while SPI module shifts in crc part1.
        rcall   spi_rcvr                ;Read second crc.
@@ -682,7 +682,7 @@ mmc_rdexw:
        rcall   printhex
        printstring     " "
 .endif
-       ret\r
+       ret
 
 ;--------------------------------------------------------------
 ; Write sector