Changeset ee447bf in thomson for code/C/HxCHost/pff/diskio.c
- Timestamp:
- Mar 10, 2012, 7:58:02 PM (12 years ago)
- Branches:
- main
- Children:
- 99bc67a
- Parents:
- 1b74fa2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/C/HxCHost/pff/diskio.c
r1b74fa2 ree447bf 106 106 if (!buff) { 107 107 if (sc) { 108 mon_putc('A');109 108 // Initiate write process 110 109 prevsec = sc; 111 110 ptr = 0; 112 111 } else { 113 mon_putc('C');114 mon_putc(' ');115 printhex(ptr);116 112 // Called with both param = 0 - flush buffer to disk 117 113 // First make sure it's zero-filled … … 124 120 map_sector(prevsec, 0xA5); 125 121 126 for(int j = 0; j < 40; j++)127 printhex(*(char*)(wrbuf + j));128 129 122 write(255,1,wrbuf); 130 123 } 131 124 } else { 132 mon_putc('B');133 125 // Here SC is a bytecount. copy that much bytes to the buffer 134 126 for(int j = 0; j <sc;++j)
Note:
See TracChangeset
for help on using the changeset viewer.