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


Ignore:
Timestamp:
Mar 19, 2012, 7:51:49 AM (12 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
fe55aa5
Parents:
cc8f3af
Message:

HxC host software : work at Forever XIII party

  • Switch to lwtools gcc toolchain
  • Fix some bugs.
  • Editing the HxC settings works
  • Selecting a floppy image works (sometimes)

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

File:
1 edited

Legend:

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

    rcc8f3af r7cabd49  
    9696
    9797DRESULT disk_writep (
    98         const BYTE* buff,/* Pointer to the data to be written, NULL:Initiate/Finalize write operation */
     98        const BYTE* buff,
     99        /* Pointer to the data to be written,
     100         * NULL:Initiate/Finalize write operation */
    99101        DWORD sc                /* Sector number (LBA) or Number of bytes to send */
    100102)
    101103{
    102104        static WORD ptr;
    103         static char* wrbuf[256];
     105        static char wrbuf[256];
    104106                // Separate buffer because we need to use map_sector, and it kills secbuf
    105107
     
    114116                        for(;ptr < 512; ++ptr)
    115117                        {
    116                                 *(wrbuf + ptr) = 0;
     118                                wrbuf[ptr] = 0;
    117119                        }
    118120
     
    126128                for(int j = 0; j <sc;++j)
    127129                {
    128                 *(char*)(wrbuf+ptr) = *(char*)(ptr++ + buff);
     130                wrbuf[ptr] = *(char*)(j+buff);
     131                        ++ptr;
    129132                }
     133        mon_putc(' ');
    130134        }
    131135
Note: See TracChangeset for help on using the changeset viewer.