home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / diskutil / rwp100b.zoo / rwp.doc < prev   
Encoding:
Text File  |  1990-03-30  |  5.7 KB  |  105 lines

  1.                         Resident Write Protector
  2.                              by Randy Hall
  3.                                 (C)1990
  4.  
  5. -------------------------------- Intro: --------------------------------------
  6.  
  7. I've been spending most of my free time with computers since I got interested
  8. in them several years ago.  One thing that I have always wanted to learn is
  9. assembly language.  I first tried it on the Apple ][, however, I didn't have
  10. an assembler and trying to write anything by looking up OP codes from a chart
  11. is enough to drive anyone crazy.  My next attempt was with my Model 100
  12. portable computer from Radio Shack.  I shelled out the 49.95 for the program
  13. but never could find time to sit down and learn it.  That was a few years back
  14. and I just figured I would never learn assembler unless I took a class.  Well,
  15. my prayers were answered.  One of the class I am taking for my computer
  16. science degree at Old Dominion University was a microprocessor class.  By
  17. another stroke of luck, since there was no macro assembler installed on the
  18. 680x0 based Sun workstations, we had to learn 80x86 assembler on ATs.  I
  19. was ammazed at how fast I picked up the language.  My first assignment was
  20. to multiply two six digit numbers using unpacked BCD numbers.  The next
  21. program from this class follows.
  22.  
  23. ------------------------- Overview of program: -------------------------------
  24.  
  25. This program, once installed from the DOS prompt, will allow the user to
  26. select the protection status of any disk drive on the system.  Just by calling
  27. up a pop-up menu, any drive can be write protected, format protected, or left
  28. as is.
  29.  
  30. ---------------------------- Installaion: -----------------------------------
  31.  
  32. To install RWP, type "RWP" at the DOS prompt.  RWP will not allow itself to be
  33. install twice.
  34.  
  35. RWP defaults to no protection on the floppy drives and format protection on
  36. the hard drives
  37.  
  38. ----------------------------- Activation: -----------------------------------
  39.  
  40. To activate RWP, press the left shift key and the Alt key at the same time.
  41. The following menu will appear on the screen
  42.  
  43.         ############################################################
  44.         # -=«< Resident Write Protector (C)1990 by Randy Hall >»=- #
  45.         ############################################################
  46.         #    PROTECTION SELECTIONS    |    Protection Levels:      #
  47.         #-----------------------------+----------------------------#
  48.         # Floppy: Drive A: (00h)   0  | 0: None (normal operation) #
  49.         #         Drive B: (01h)   0  | 1: Format protected        #
  50.         #   Hard: Drive C: (80h)   1  | 2: Write protected &       #
  51.         #         Drive D: (81h)   1  |    Format protected        #
  52.         #=============================+============================#
  53.         #          Use ^ and v to select between drives            #
  54.         #         Use < and > to select protection level           #
  55.         ############################################################
  56.         #      PRESS ESC TO RESUME PROGRAM ALREADY IN PROGRESS     #
  57.         ############################################################
  58.  
  59. Using the up and down arrows, you can move to the drive you want to change
  60. the protection of.  Once on the drive you want to change, the left arrow will
  61. decrement the protection level of that drive and the right arrow will increment
  62. the protection level.
  63.  
  64.      +-------+-------------------------------------------------------+
  65.      | LEVEL |   DESCRIPTION                                         |
  66.      |-------+-------------------------------------------------------+
  67.      |   0   |   Normal disk operation on that drive                 |
  68.      |   1   |   Format requests and writes to the boot sector are   |
  69.      |       |   interrupted.                                        |
  70.      |   2   |   The disk appears to the computer as having a write  |
  71.      |       |   protect tab on it.                                  |
  72.      +-------+-------------------------------------------------------+
  73.  
  74. Remember, this is more of a programing excercise than a real protection
  75. utility.  There are many virues out there that are clever enough to bypass
  76. this program all together.
  77.  
  78. Once the protection levels are set to your liking, pressing ESC will return
  79. the program that was interrupted by the <Left Shift><Alt>.
  80.  
  81. ------------------------- Technical notes: ---------------------------------
  82.  
  83. DO NOT ACTIVATE THIS PROGRAM IN GRAPHICS MODE.  It is safest to change
  84. protection when the computer is at DOS but go ahead and experiment.  The worst
  85. that can happen is you have to reboot.
  86.  
  87. This program is written for the most common base of computers.  If you have
  88. a strange configuration where more that two floppy drives are lettered
  89. before the hard disks, then those drives may behave strangely.  If your
  90. first two hard disks are something other than C: and D:, this program may
  91. still protect them.  Just think of the first drive as C: and the second as
  92. D:.  This configuration can only occour if the jumpers on the motherboard of
  93. an PC or XT are set funny.  ATs need not worry about it.  Just experiment and
  94. have fun with the program.  This program will also have no effect on networked
  95. drives.  If your feeling adventuous, play around with the souce code.  Feel
  96. free to send me feedback through e-mail or regular mail.  I can't say that
  97. I will upgrade this program, but you never know.  If it gets better, I will
  98. try and post the source on the internet.
  99.  
  100.                                                         Have Fun!!! (I did)
  101.                                                         Randy Hall
  102.  
  103. internet address: hall@cs.odu.edu       postal address: 3806 Pecan Street
  104.                                                         Portsmouth, VA  23703
  105.