Changeset 259 in xtideuniversalbios for trunk/Serial_Server/win32
- Timestamp:
- Feb 23, 2012, 7:14:06 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Serial_Server/win32/Win32.cpp
r258 r259 30 30 " -n [megabytes] Create new disk with given size or use -g geometry", 31 31 " Maximum size is " USAGE_MAXSECTORS, 32 " Floppy images can also be created, such as \"360K\"", 32 33 " (default is a 32 MB disk, with CHS geometry 65:16:63)", 33 34 "", … … 160 161 if( atol(argv[t+1]) != 0 ) 161 162 { 162 unsigned long size = atol(argv[++t]); 163 sect = 63; 164 head = 16; 165 cyl = (size*1024*2) / (16*63); 163 double size = atof(argv[++t]); 164 struct floppyInfo *fi; 165 char *c; 166 167 size *= 2; 168 for( c = argv[t]; *c && *c != 'k' && *c != 'K'; c++ ) ; 169 if( !(*c) ) 170 size *= 1000; 171 172 if( (fi = FindFloppyInfoBySize( size )) ) 173 { 174 sect = fi->sectors; 175 head = fi->heads; 176 cyl = fi->cylinders; 177 } 178 else 179 { 180 sect = 63; 181 head = 16; 182 cyl = size / (16*63); 183 } 166 184 } 167 185 break;
Note:
See TracChangeset
for help on using the changeset viewer.