home *** CD-ROM | disk | FTP | other *** search
/ Amiga Computing 60 / ac060.adf / Utilities / Sector_Ed.doc / Sector_Ed.doc
Text File  |  1993-02-15  |  10KB  |  252 lines

  1.  ####  ####  #### #####  ###  ####           #### ####  # #####  ###  #### 
  2. #     #     #       #   #   # #   #         #     #   # #   #   #   # #   #
  3.  ###  ####  #       #   #   # ####          ####  #   # #   #   #   # #### 
  4.     # #     #       #   #   # #   #         #     #   # #   #   #   # #   #
  5. ####   ####  ####   #    ###  #   #          #### ####  #   #    ###  #   #
  6.  
  7.                            Programed By Gary Crean
  8.                            -----------------------
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. ----------------------------------------------------------------------------
  17. 1...WARNING
  18. 2...Sector Editor  (Why ?)
  19. 3...How To Use
  20. 4...Other
  21.  
  22.  
  23. ----------------------------------------------------------------------------                                     WARNING
  24. ----------------------------------------------------------------------------
  25. This Program Has An Update Function Which Allows The User To Store Data To
  26. Each Sector Of The Disk. If Used Wrongly This Will Upset Dos And Even Lose
  27. Data On The Disk.
  28.  
  29. I Cannot Be Responsible For Any Lose Of Data.
  30.  
  31.  
  32. ----------------------------------------------------------------------------                               Sector Editor (Why ?)
  33. ----------------------------------------------------------------------------
  34. The Story.
  35.  
  36.  I Had A Friend Who Had Some Nasty Words In A Program. I Told Him To Load
  37.  The Program Into Memory, Alter It And Save It Back.
  38.  Then A Few Days Later I Needed To Change A BootBlock I Wrote.
  39.  So I Wrote A Program That Loaded The BootBlock In Created A Checksum And
  40.  Saved It Back. All Editing Was Done Using A Monitor Program.
  41.  
  42.  So I Decided To Write A Program That Loads In Any Sector
  43.  Creates Checksums,Formats Disk (Allowing You To Store Your Favorite
  44.  Boot Block On It) Loads and Save Parts On The Disk To A File
  45.  And Best Of All Edit In Hex Or Ascii
  46.  
  47.  
  48. ----------------------------------------------------------------------------                                   How To Use
  49. ----------------------------------------------------------------------------
  50.  
  51.  1...The Block Commands         ( <  BLOCK 0000  > )
  52.  2...The Read Command           ( READ )
  53.  3...The Update Command         ( UPDATE )
  54.  4...The Load Command           ( LOAD )
  55.  5...The Save Command           ( SAVE )
  56.  6...The Auto Command           ( AUTO ON/OFF )
  57.  7...The Leave Command          ( LEAVE )
  58.  8...The Checksum Command       ( CREATE CHECKSUM )
  59.  9...The Clear Command          ( CLEAR BLOCK )
  60.  10..The Format Command         ( FORMAT DISK )
  61.  11..The Page Command           ( PAGE 0,PAGE 1)
  62.  12..The Hex Command            ( HEX )
  63.  13..The Ascii Command          ( ASCII )
  64.  
  65.  
  66. ----------------------------------------------------------------------------                                        1
  67. ----------------------------------------------------------------------------
  68.  
  69.  <
  70.         This Command Subtracts 1 From The Current Block.
  71.  
  72.  BLOCK
  73.         This Command Allows You To Enter The Desired Block Number
  74.         Click on This Command Opens A Window. Click On The Box, Then
  75.         Delete The Current Block Number Then Enter Your Own.
  76.         When You Have Finished Click On The O.K. And Your Block Will
  77.         Be The Current Block. ( 0 - 1758 )
  78.  
  79.  >
  80.         This Command Adds 1 To The Current Block
  81.  
  82. ----------------------------------------------------------------------------                                       2
  83. ----------------------------------------------------------------------------
  84.  
  85.  READ
  86.         This Command Reads The Current Block Into The Editor Window
  87.         For Editing
  88.  
  89. ----------------------------------------------------------------------------                                       3
  90. ----------------------------------------------------------------------------
  91.  
  92.  UPDATE
  93.         This Command Writes The Editor Window To The Current Block
  94.  
  95.         See Warning Message At The Top Of This File
  96.  
  97. ----------------------------------------------------------------------------                                       4
  98. ----------------------------------------------------------------------------
  99.  
  100.  LOAD
  101.         This Command Loads A File From A Disk/Ram And Stores It Onto The
  102.         Disk.
  103.  
  104.         E.g.
  105.             Start = 0
  106.             End   = 1
  107.             File  = RAM:BootBlock
  108.  
  109.         The Above Would Load In The RAM:BootBlock File And Store It To Disk
  110.         On Blocks 0 And 1
  111.         If The File Is Shorter Than 2 Blocks Then Only The First Few Lot Of
  112.         Data Is Saved
  113.  
  114.         See Warning Message At The Top Of This File
  115.  
  116. ----------------------------------------------------------------------------                                       5
  117. ----------------------------------------------------------------------------
  118.  
  119.  SAVE
  120.         This Command Saves The Blocks From The Disk To The Disk/Ram
  121.  
  122.         E.g.
  123.             Start = 0
  124.             End   = 1
  125.             File  = RAM:BootBlock
  126.  
  127.             The Above Would Create A File Called RAM:BootBlock Which
  128.             Contains The Data On Blocks 0 and 1.
  129.  
  130.             Storing This In S: Dir Under The Name Of BOOTBLOCK Will
  131.             Automaticly Write This Boot Block On The Next Format. When
  132.             The Program ReRuns
  133.  
  134. ----------------------------------------------------------------------------                                      6
  135. ----------------------------------------------------------------------------
  136.  AUTO ON/OFF
  137.         This Command Automaticly Reads The Disk When :
  138.  
  139.         1...The Current Block Number Has Been Changed
  140.         2...A Disk Has Been Inserted
  141.  
  142. ----------------------------------------------------------------------------                                      7
  143. ----------------------------------------------------------------------------
  144.  
  145.  LEAVE
  146.         This Command Leaves The Program.
  147.  
  148. ----------------------------------------------------------------------------                                      8
  149. ----------------------------------------------------------------------------
  150.  
  151.  CREATE CHECKSUM
  152.         This Command Creates A Checksum On The Current Block In The
  153.         Editor Window. However It You Are Creating A Checksum On The
  154.         Boot Block It Will Load The Boot Block From Disk Then Rewrite
  155.         It Back To Disk. It Does Not Update The Editor Window And Does
  156.         Not Store The Current Editor Window To Disk Before Calculating
  157.  
  158.         On Other Blocks Not The Boot Block It Will Calculate The Checksum
  159.         And Update The Editor Window.
  160.  
  161. ----------------------------------------------------------------------------                                      9
  162. ----------------------------------------------------------------------------
  163.  
  164.  CLEAR BLOCK
  165.         This Command Clears The Editor Window And Sets All The Bytes To
  166.         $E5 As If You Were Editing A Formated Block
  167.  
  168. ----------------------------------------------------------------------------                                     10
  169. ----------------------------------------------------------------------------
  170.  
  171.  FORMAT DISK
  172.         This Command Formats A Disk. It Is Very Powerful I Managed To 
  173.         Format Some Old PC Disks. That Would Not Format With My Normal
  174.         Disk Formater.
  175.  
  176.         It Also Has A Built In Boot Block Which I Found Useful But If 
  177.         You Dont Like It Just Store The Boot Block You Do Want In The
  178.         S: Dir Under The Name Of BOOTBLOCK Before Running The Program
  179.  
  180.         To Enter The Disk Name. Click On The Box,Delete The Old Name And
  181.         Enter The New One. Click On O.K. The Screen Will Turn Red Then It 
  182.         Will Start Formatting
  183.  
  184. Note: Do Not Change My BootBlock It Belongs To Me.
  185.  
  186. ----------------------------------------------------------------------------                                     11
  187. ----------------------------------------------------------------------------
  188.  
  189.  PAGE 0 / PAGE 1
  190.         This Displays The Top Part Or Bottom Part Of The Block In The
  191.         Editor Window
  192.  
  193.  Page 0 Offset 0 To $0ff
  194.  Page 1 Offset $100 To $1ff
  195.  
  196. ----------------------------------------------------------------------------                                     12
  197. ----------------------------------------------------------------------------
  198.  
  199.  HEX
  200.         This Command Enters The Hexadecimal Edit Mode
  201.         Just Type In The Hex Digit And It Will Be Stored In Memory
  202.         Then Type The Next One.
  203.  
  204.         Use Cursor Keys To Move The Cursor And (TAB) To Toggle Between
  205.         Hex And Ascii Modes
  206.  
  207. ----------------------------------------------------------------------------                                     13
  208. ----------------------------------------------------------------------------
  209.  
  210.  ASCII
  211.         This Command Enters The Ascii Edit Mode
  212.         Just Type The Character And It Will Be Stored In Memory
  213.         Then Just Type The Next One.
  214.  
  215.         Use Cursor Keys To Move The Cursor And (TAB) To Toggle Between
  216.         Ascii And Hex Modes
  217.  
  218.  
  219. ----------------------------------------------------------------------------                                    OTHER
  220. ----------------------------------------------------------------------------
  221.  
  222. The Built In Boot Block Is Non Standard And Your Virus Checker May Thick It
  223. Is A Virus. You Can Ignore This Or Learn It. ( Read Format Command)
  224.  
  225.  
  226. Thanks To:
  227.  
  228.  Abacus Books       (For Amiga Machine Language,Disk Drives Inside And Out)
  229.  Amiga Format       (For Releasing Devpac2)
  230.  EarWax Records     (For The Background Music)
  231.  Games Programers   (For Entertianment During The Hard Times)
  232.  
  233. Hello To :
  234.  
  235.  F.D.W Posse
  236.  Sian (My Girlfriend)
  237.  Cricklade Colledge
  238.  EveryOne That Knows Me.
  239.  
  240.  
  241. This Programs Was Written On A A500 With 1 Meg Of Memory And 1 Disk Drive.
  242. It Was Finally Finished On The 8th Of January 1993 At 1:40 AM
  243.  
  244. This Program May Be Freely Copyed As Long As It Is NOT CHANGED in Any Way
  245. And Remains With This DOC File.
  246.  
  247.  Enjoy.
  248.  
  249.  
  250. ----------------------------------------------------------------------------                                   THE END
  251. ----------------------------------------------------------------------------
  252.