]> cloudbase.mooo.com Git - avrcpm.git/blobdiff - avrcpm/cpm/bios.asm
* cpm/bios.asm:
[avrcpm.git] / avrcpm / cpm / bios.asm
index 07e7603c11452845e818b98167ad5e1eea364dab..0ae7932aa028ab0f89b14ed11bcc551844deffeb 100644 (file)
@@ -13,6 +13,9 @@
 ;
 ;    You should have received a copy of the GNU General Public License
 ;    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+;
+;    $Id$
+;
 
 msize: equ     62      ;size of available RAM in k
 
@@ -25,8 +28,8 @@ iobyte:       equ     0003h           ;intel iobyte
 buff:  equ     0080h           ;default buffer address
 retry: equ     3               ;max retries on disk i/o before error
 
-cr:    equ     13
-lf:    equ     10
+cr:equ 13
+lf:equ 10
 
 READ_FUNC:  equ        7
 WRITE_FUNC: equ        6
@@ -151,7 +154,7 @@ boot:
        ld      hl,7
        add     hl,de
        ld      a,(hl)          ;get drm
-       inc     a
+       add     3               ;ToDo: this works only up to 252 dir entries
        and     0fch
        rrca                    ;4 dir entries per sector
        rrca                    ;Number of sectors to init
@@ -159,7 +162,7 @@ boot:
        
        ld      bc,6
        add     hl,bc
-       ld      c,(hl)          ;Start track
+       ld      c,(hl)          ;Start track (= # of reserved tracks)
        push    bc              ;Save track
        
 ; Check, if we have reserved tracks.