Shop OBEX P1 Docs P2 Docs Learn Events
FAT16 in a BS2!! — Parallax Forums

FAT16 in a BS2!!

ArchiverArchiver Posts: 46,084
edited 2001-08-23 18:01 in General Discussion
I just wrote a routine that gets the start of the first partition from the MBR,
finds the first FAT sector, reserves a cluster in the FAT, finds the first root
directory sector, makes a file entry, finds the beginning of the data portion of
the partition and writes a small text file.

I put the CF card in my USB reader and Win2000 didn't complain. Notepad popped
up and there was the text I entered using the BS2!!

Here, I thought I had run out of room in the BS2. I found a way to free another
250 bytes of code space. The code to work with the ram, ide and lcd takes 1104
bytes. That leaves 944 bytes to actually do something with this thing. The
code to write the text file takes 656 bytes, leaving 288 bytes free.

Next, I'm gonna try to read a file created on the PC and display it to the LCD.

I'll put the code on my site, but it will have to wait till tomorrow after work.
It's late....



Barry Michels
http://www.barrymichels.com/ide


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-08-23 17:35
    Barry,

    I just had to go on the record and say that your IDE interface project is an
    incredible effort on your part and just shows how a bit of determination can
    yield tremendous results. The fact that you are sharing your results ( & code )
    with everyone here just adds to an already amazing and appreciated
    project. Keep up the excellent work.

    Much Thanks,
    Bill Mrozinski

    Barry Michels wrote:

    > I just wrote a routine that gets the start of the first partition from the
    MBR, finds the first FAT sector, reserves a cluster in the FAT, finds the first
    root directory sector, makes a file entry, finds the beginning of the data
    portion of the partition and writes a small text file.
    >
    > I put the CF card in my USB reader and Win2000 didn't complain. Notepad
    popped up and there was the text I entered using the BS2!!
    >
    > Here, I thought I had run out of room in the BS2. I found a way to free
    another 250 bytes of code space. The code to work with the ram, ide and lcd
    takes 1104 bytes. That leaves 944 bytes to actually do something with this
    thing. The code to write the text file takes 656 bytes, leaving 288 bytes free.
    >
    > Next, I'm gonna try to read a file created on the PC and display it to the
    LCD.
    >
    > I'll put the code on my site, but it will have to wait till tomorrow after
    work. It's late....
    >
    > Barry Michels
    > http://www.barrymichels.com/ide
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2001-08-23 18:01
    I agree with Bill!! I think this is an outstanding effort on the part
    of Barry and I think he needs to be publicly commended for it!! Keep up
    the good work and keep us posted on your results..


    Regards,

    Leroy

    "William E. Mrozinski" wrote:
    >
    > Barry,
    >
    > I just had to go on the record and say that your IDE interface project is
    an incredible effort on your part and just shows how a bit of determination can
    yield tremendous results. The fact that you are sharing your results ( & code )
    with everyone here just adds to an already amazing and appreciated
    > project. Keep up the excellent work.
    >
    > Much Thanks,
    > Bill Mrozinski
    >
    > Barry Michels wrote:
    >
    > > I just wrote a routine that gets the start of the first partition from the
    MBR, finds the first FAT sector, reserves a cluster in the FAT, finds the first
    root directory sector, makes a file entry, finds the beginning of the data
    portion of the partition and writes a small text file.
Sign In or Register to comment.