]> cloudbase.mooo.com Git - z180-stamp-cpm3.git/commitdiff
Print message if no card was detected
authorLeo C <erbl259-lmu@yahoo.de>
Tue, 24 May 2016 23:17:59 +0000 (01:17 +0200)
committerLeo C <erbl259-lmu@yahoo.de>
Tue, 24 May 2016 23:17:59 +0000 (01:17 +0200)
cbios/cfio.180

index 604070a5d94ebcc760aa9c6436419af1b93efa4b..d7d6697299e420142cee0486b0ee033af6b83613 100644 (file)
@@ -196,7 +196,7 @@ dpbsimhd512:
 \r
 cf$init0:\r
        call    pr.inln                 ;\r
-       db      'cfio: CompactFlash Memory Card driver'cr,lf,0\r
+       db      'cfio: CompactFlash Memory Card driver',0\r
 \r
        ld      hl,parttbl              ; Clear partition table\r
        ld      b,PARTENTRY_SIZE*MAXDISKS\r
@@ -206,13 +206,13 @@ ini_clrtbl:
        djnz    ini_clrtbl\r
 \r
        call    cf_init                 ; init ide interface / cf card\r
-       jr      nz,pend\r
-\r
+       jr      nz,nocard\r
        call    ident_read              ; identify drive\r
-       jr      nz,pend\r
+       jr      nz,nocard\r
 \r
        call    prnt_info               ; print device information\r
        call    ptab_read               ; read the partition table\r
+       jr      nz,pend\r
 \r
        ld      c,0                     ; number of found disks (paritions)\r
        jr      nz,pend\r
@@ -264,6 +264,11 @@ pend:
        call    prnt_ptab               ; Print partition table info\r
        ret\r
 \r
+nocard:\r
+       call    pr.inln\r
+       db      ": No Card",cr,lf,0\r
+       ret\r
+\r
 \r
 cf$init1:\r
 cf$init2:\r
@@ -486,7 +491,7 @@ prn_lp1:
 \r
 prnt_info:\r
        call    pr.inln\r
-       db      '    Model: ',0\r
+       db      cr,lf,'    Model: ',0\r
        ld      hl,tmpsecbuf + 27*2     ; Model number\r
        ld      c,20*2                  ; max character count\r
        call    pr_id                   ;\r