/[projet1]/public/pc/tools/osdk/main/FloppyBuilder/FloppyBuilder.cpp
Defence Force logotype

Diff of /public/pc/tools/osdk/main/FloppyBuilder/FloppyBuilder.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1328 by mmu_man, Sat May 9 23:00:05 2015 UTC revision 1329 by dbug, Sat Oct 24 20:40:51 2015 UTC
# Line 103  int main(int argc, char *argv[]) Line 103  int main(int argc, char *argv[])
103      "\r\n"      "\r\n"
104      "Author:\r\n"      "Author:\r\n"
105      "  (c) 2002 Debrune Jerome for the initial version \r\n"      "  (c) 2002 Debrune Jerome for the initial version \r\n"
106      "  (c) 2013 Pointier Mickael for the subsequent changes \r\n"      "  (c) 2015 Pointier Mickael for the subsequent changes \r\n"
107      "\r\n"      "\r\n"
108      "Purpose:\r\n"      "Purpose:\r\n"
109      "  Generating bootable floppies for the Oric computer.\r\n"      "  Generating bootable floppies for the Oric computer.\r\n"
# Line 376  int main(int argc, char *argv[]) Line 376  int main(int argc, char *argv[])
376          }          }
377        }        }
378        else        else
379          if (tokens[0]=="ReserveSectors")
380          {
381            if ( (tokens.size()==2) || (tokens.size()==3) )
382            {
383              int sectorCount=ConvertAdress(tokens[1].c_str());
384              int fillValue=0;
385              if (tokens.size()==3)
386              {
387                fillValue=ConvertAdress(tokens[2].c_str());
388              }
389              if (!floppy.ReserveSectors(sectorCount,fillValue,metadata))
390              {
391                ShowError("Error line (%d), could not reserve %u sectors on the disk. Make sure you have a valid floppy format declared. \n",lineNumber,sectorCount);
392              }
393            }
394            else
395            {
396              ShowError("Syntax error line (%d), syntax is 'ReserveSectors SectorCount [FillValue]' \n",lineNumber);
397            }
398          }
399          else
400        if (tokens[0]=="SaveFile")        if (tokens[0]=="SaveFile")
401        {        {
402          // ; SaveFile "File_0.bin"  $80 $01 $47  ; Name Track Sector Lenght adress          // ; SaveFile "File_0.bin"  $80 $01 $47  ; Name Track Sector Lenght adress

Legend:
Removed from v.1328  
changed lines
  Added in v.1329

  ViewVC Help
Powered by ViewVC 1.1.26