]> cloudbase.mooo.com Git - avrcpm.git/blobdiff - avr/dsk_fat16.asm
* avr/config.inc
[avrcpm.git] / avr / dsk_fat16.asm
index f5516df39746c443856574c264f8e0bc253c78aa..5139346cec57d8478a8271d67af535bc7d948127 100644 (file)
 #define FAT16_BSO_NUMFATCP     0x10    ; Offset to Ammount of FAT Copys
 #define FAT16_BSO_NUMDIRENT    0x11    ; Offset to Max. Root Dir. Entrys
 #define        FAT16_FIRST_IMAGENAME   'A'     ; First letter of filename to search 
+#define FAT16_LAST_IMAGENAME    'Z'    ; Last letter of filename to 
+/*
 #define FAT16_LAST_IMAGENAME    'A'+MAXDISKS-1 ; Last letter of filename to 
                                                ; search 
+*/
 
 ; ############################################################################ 
 ;                              Start of Data Segment
@@ -582,7 +585,7 @@ fat_store_new_entry:
 
 ;   Found a valid image
 .if FAT16_DEBUG > 1
-       printstring "Found a valid Image ! Z="
+       printstring "Found a valid Image! Z="
        mov     temp ,zl
        mov     temp2,zh
        rcall   printhexw
@@ -593,7 +596,7 @@ fat_store_new_entry:
        lds     temp3,ndisks
 
 fat_look_store_loop:
-       cp      temp3,_0
+       tst     temp3
        breq    fat_look_store
 
        adiw    y,PARTENTRY_SIZE