Changeset ee447bf in thomson for code/C/HxCHost/pff/diskio.c


Ignore:
Timestamp:
Mar 10, 2012, 7:58:02 PM (12 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
99bc67a
Parents:
1b74fa2
Message:

More work on write support :

  • Avoid using the same buffer over and over again for everything, when writing this creates some problems.
  • Editing the configuration now works.

git-svn-id: svn://localhost/thomson@19 85ae3b6b-dc8f-4344-a89d-598714f2e4e5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/C/HxCHost/pff/diskio.c

    r1b74fa2 ree447bf  
    106106        if (!buff) {
    107107                if (sc) {
    108                         mon_putc('A');
    109108                        // Initiate write process
    110109                        prevsec = sc;
    111110                        ptr = 0;
    112111                } else {
    113                         mon_putc('C');
    114                         mon_putc(' ');
    115                         printhex(ptr);
    116112                        // Called with both param = 0 - flush buffer to disk
    117113                        // First make sure it's zero-filled
     
    124120                        map_sector(prevsec, 0xA5);
    125121
    126                         for(int j = 0; j < 40; j++)
    127                                 printhex(*(char*)(wrbuf + j));
    128 
    129122                        write(255,1,wrbuf);
    130123                }
    131124        } else {
    132                 mon_putc('B');
    133125                // Here SC is a bytecount. copy that much bytes to the buffer
    134126                for(int j = 0; j <sc;++j)
Note: See TracChangeset for help on using the changeset viewer.