home *** CD-ROM | disk | FTP | other *** search
/ Boldly Go Collection / version40.iso / TS / 25D / SEGOF123.ZIP / SEGOFF.DOC < prev    next >
Encoding:
Text File  |  1992-07-27  |  8.8 KB  |  161 lines

  1.  
  2.                                      SEGOFF
  3.                                   Version 1.23
  4.                                A utility for ram
  5.                        Copyright APRIL 1992 by David Roper
  6.  
  7.            Offered as FREEWARE to my friends.... both known and unknown.
  8.  
  9.         Let's read this like ANDY ROONEY would say...(get into character)
  10.  
  11.         "Didja ever wonder whether the fifth bit of a certain byte in a
  12.          memory location was set on, or off, because the Modem wouldn't
  13.          work .... or something like that?"  "Me, too."
  14.  
  15.         "Well, this SEGOFF will let you see easily."
  16.  
  17.         "You don't even have to pay the guy who wrote it... I don't
  18.          know why he's doing that... but he just is!"
  19.  
  20.         Enough of ANDY ROONEY.  And Mr. Rooney, if you're seeing this
  21.         then please don't get mad... Don't sue me. I enjoy you.  I'm
  22.         just tired of dull DOC files.  Here goes.  This program is easy
  23.         to use.  Try it, you'll like it.
  24.  
  25.         To look around in DOS, you typically have to know what SEGMENT
  26.         you want to begin in.... and then what OFFSET to start at.  An
  27.         OFFSET of zero is at the beginning byte of the SEGMENT address.
  28.         Wow, what a mouthful!  In each SEGMENT, you can't look at but
  29.         64K at a time, that's the way DOS is, funny that way, huh?
  30.  
  31.         Type SEGOFF at the DOS prompt and you will be asked to select
  32.         whatever SEGMENT and OFFSET of DOS you want to start looking around
  33.         in. This SEGMENT and OFFSET must be four characters long each and
  34.         separated with a colon. It's the same SEGMENT:OFFSET that you see
  35.         in ASSEMBLY Language stuff, and in DEBUG stuff.  You know... like
  36.         maybe at 0040:0000, where the port addresses for the parallel
  37.         printer and COM1 and COM2 ports are established.
  38.  
  39.         If you are one of those COMMAND line groupies, you can do it all
  40.         from the COMMAND line, too.  No sense running a menu, I mean....
  41.         At the DOS prompt you may type at A:\>SEGOFF 0040:0000
  42.  
  43.         You can look at "0040:0000" with this program and you'll see the
  44.         familiar 3F8 and 2F8 addresses in HEX (each uses two bytes)....
  45.         you can see the Parallel port at HEX address 378 unless you
  46.         have a 'peculiar' printer card.  Again, this 378 is two hex
  47.         numbers... a 78 and a 3.  Run SEGOFF 0040:0000 and try to find
  48.         them on the first screen, at offsets 8 and 9, good luck.
  49.  
  50.         FYI, 0040:0000 is the same address as 003F:0010 and 003E:0020
  51.         In other words, there is more than one way to state an address.
  52.         This addressing has been known to make a grown man cry.  I
  53.         know... I've cried.  Here's the way I figure it....
  54.  
  55.               Each place in the SEGMENT is worth 2 in the OFFSET.
  56.               003F:0010 is 3F + 10 which is 0040:0000 or 40 + 0.
  57.               The 3F is 3F "sixteens", the 10 is sixteen "ones."
  58.  
  59.         Sometimes you need to know the decimal and the HEX number both,
  60.         so they are displayed side by side for you.  Sometimes you feel
  61.         like a nut, sometimes you don't....this is a mound of info...
  62.  
  63.         The bits are figured for you on every byte.  Whether you NEED
  64.         to know them is your business.  A "1" is "ON" and a "0" is
  65.         "OFF" just like you learned in electronics school.
  66.  
  67.         The BIT powers of two are at the top of the column so you can't
  68.         get corn-fused.  For instance, the column under the 3 means the
  69.         fourth bit (0,1,2,3) and that stands for 2 * 2 * 2 or 8, savvy?
  70.         2 to the zeroth power is 1, remember?  The 3 means 2 to the
  71.         power 3, which is 2 times 2 times 2, or 8.
  72.  
  73.         Some of the characters wouldn't print for me so I abbreviated
  74.         them for us, like BELL for the CHR 7, etc., etc., etc.
  75.  
  76.         The pointer at the top of each "session" will remind you which
  77.         columns will change using the arrow keys.  UP and DOWN arrows
  78.         increase and decrease addresses.  The LEFT and RIGHT arrows
  79.         move the column pointer around.  You can touch any of the HEX
  80.         values 0 through 9 or A through F to change the memory location
  81.         value directly.  I like the DIRECT entry, it's fast.
  82.         
  83.         Do you need to INSERT a value into a memory location?        
  84.         
  85.         NOTE: The following explanation works ONLY IF you have run
  86.               SEGOFF with a command line switch of /INS or -INS.
  87.               This is to "protect" the innocent from themselves.
  88.               To enable the INSert feature, add the switch /INS or -INS
  89.               when you run SEGOFF, such as these examples:
  90.               SEGOFF /INS  
  91.               or if you're using a Segment and Offset address, then 
  92.               SEGOFF 00040:0000 /INS 
  93.             
  94.                  (Actually, "/I" works as well....so does "-I")      
  95.                             
  96.         ****************************************************************                    
  97.         Now....(these next 2 paragraphs ONLY if you've used /INS, okay?) 
  98.         ----------------------------------------------------------------     
  99.         If you need to INSERT a new value at a location in MEMORY, 
  100.         just bring that location up TO THE TOP OF THE COLUMN and press 
  101.         the INS key.  When you enter a new value, keep in mind, if you 
  102.         use 2 characters, it assumes you're using HEX numbers.  If you 
  103.         use 3 characters, it assumes you're using decimal numbers.  If
  104.         you use 0 characters or more than 3 characters, you get nothing.
  105.         
  106.         Explain that one more time, please....
  107.         ....Okay!.... if you want to enter decimal 5, you may enter 005 
  108.         or 05, since 005 decimal and 05 hex are both equal to 5.  However, 
  109.         remember that 20 hex is 032 decimal (ie the space character).  
  110.         If you were to enter just "32" for the space character, that 
  111.         would be a 32 HEX (which is 050 in decimal), which is NOT the 
  112.         space character at all, it's the number "2" in the ASCII charts. 
  113.         Another example is ASCII (decimal) 65, the capital letter "A".
  114.         In HEX "talk," it's 41; in decimal "talk" it's 65.  How would you
  115.         input it?   Just pick one of these two answers:  41  or  065
  116.         If you get cold feet, just press enter with no value given and
  117.         nothing will be done.  A null entry does nothing, in other words.
  118.         *****************************************************************
  119.  
  120.         Some other interesting places to look at are these:
  121.         0041:0000, the bits 6,7 (of 76543210) are the number of disk drives.
  122.         0041:0000, the bits 6,7 (of 76543210) are the # of parallel ports.
  123.         0041:0007, bit 5 tells whether or not the NUM LOCK key is down.
  124.         F000:FFF5, 8 bytes contain the BIOS ROM DATE most of the time
  125.         B800:00AC  and see the  S E G O F F  from the same color screen 
  126.  
  127.         If you see other interesting places for friends to look at, then
  128.         please edit the file called SEGOFF.DAT included with this program
  129.         and include it with this set of files.  If you send me the
  130.         information too, then I'll include it in the next version of
  131.         SEGOFF, and give you proper credit unless you don't want me to
  132.         use your name.  Just tell me, because you might be in the witness
  133.         protection plan and I don't want to divulge your name, etc.
  134.  
  135.         See if you can find the BIOS Date in your ROM chips....
  136.         Old ROM chips are the reason, sometimes, that Hard Drives cannot
  137.         be added easily to a system.  Check this out with a local Ghuru.
  138.         If you press enter with no address at the first screen then I'll 
  139.         provide F000:FFF5 for you to see the BIOS date in your machine.    
  140.               (hint: the date is mm/dd/yy, 8 bytes....look hard!)
  141.  
  142.         Anyway, have fun.  You don't need to send me any contribution
  143.         because FREEWARE is never having to say you're sorry because you
  144.         didn't send any registration fee.  La, la,la, La, La  (Laura's
  145.         theme....)  fade out..........  time out for a commercial.
  146.  
  147.         Nope, no commercial... this is free.  No registration fee.
  148.         David Roper, 201 Winding Brook Drive, Garner, NC 27529
  149.                                    (....Population 13,023 and growing)
  150.  
  151.         Not having to pay a registration fee, saves your lunch money.
  152.         Come to GARNER and have lunch with me if you have the time, 
  153.         it's a nice place to live, and the folks are friendly, too. 
  154.  
  155.         Send me a RAM address to look at for the next version, whydoncha?
  156.         Reach me at CIS 73155,1171  or you can send me a letter, 
  157.         but if you expect a reply please include a SASE.
  158.                                                            David
  159.         -----------------------------eof-----------------------------
  160. 
  161.