home *** CD-ROM | disk | FTP | other *** search
-
- SEGOFF
- Version 1.23
- A utility for ram
- Copyright APRIL 1992 by David Roper
-
- Offered as FREEWARE to my friends.... both known and unknown.
-
- Let's read this like ANDY ROONEY would say...(get into character)
-
- "Didja ever wonder whether the fifth bit of a certain byte in a
- memory location was set on, or off, because the Modem wouldn't
- work .... or something like that?" "Me, too."
-
- "Well, this SEGOFF will let you see easily."
-
- "You don't even have to pay the guy who wrote it... I don't
- know why he's doing that... but he just is!"
-
- Enough of ANDY ROONEY. And Mr. Rooney, if you're seeing this
- then please don't get mad... Don't sue me. I enjoy you. I'm
- just tired of dull DOC files. Here goes. This program is easy
- to use. Try it, you'll like it.
-
- To look around in DOS, you typically have to know what SEGMENT
- you want to begin in.... and then what OFFSET to start at. An
- OFFSET of zero is at the beginning byte of the SEGMENT address.
- Wow, what a mouthful! In each SEGMENT, you can't look at but
- 64K at a time, that's the way DOS is, funny that way, huh?
-
- Type SEGOFF at the DOS prompt and you will be asked to select
- whatever SEGMENT and OFFSET of DOS you want to start looking around
- in. This SEGMENT and OFFSET must be four characters long each and
- separated with a colon. It's the same SEGMENT:OFFSET that you see
- in ASSEMBLY Language stuff, and in DEBUG stuff. You know... like
- maybe at 0040:0000, where the port addresses for the parallel
- printer and COM1 and COM2 ports are established.
-
- If you are one of those COMMAND line groupies, you can do it all
- from the COMMAND line, too. No sense running a menu, I mean....
- At the DOS prompt you may type at A:\>SEGOFF 0040:0000
-
- You can look at "0040:0000" with this program and you'll see the
- familiar 3F8 and 2F8 addresses in HEX (each uses two bytes)....
- you can see the Parallel port at HEX address 378 unless you
- have a 'peculiar' printer card. Again, this 378 is two hex
- numbers... a 78 and a 3. Run SEGOFF 0040:0000 and try to find
- them on the first screen, at offsets 8 and 9, good luck.
-
- FYI, 0040:0000 is the same address as 003F:0010 and 003E:0020
- In other words, there is more than one way to state an address.
- This addressing has been known to make a grown man cry. I
- know... I've cried. Here's the way I figure it....
-
- Each place in the SEGMENT is worth 2 in the OFFSET.
- 003F:0010 is 3F + 10 which is 0040:0000 or 40 + 0.
- The 3F is 3F "sixteens", the 10 is sixteen "ones."
-
- Sometimes you need to know the decimal and the HEX number both,
- so they are displayed side by side for you. Sometimes you feel
- like a nut, sometimes you don't....this is a mound of info...
-
- The bits are figured for you on every byte. Whether you NEED
- to know them is your business. A "1" is "ON" and a "0" is
- "OFF" just like you learned in electronics school.
-
- The BIT powers of two are at the top of the column so you can't
- get corn-fused. For instance, the column under the 3 means the
- fourth bit (0,1,2,3) and that stands for 2 * 2 * 2 or 8, savvy?
- 2 to the zeroth power is 1, remember? The 3 means 2 to the
- power 3, which is 2 times 2 times 2, or 8.
-
- Some of the characters wouldn't print for me so I abbreviated
- them for us, like BELL for the CHR 7, etc., etc., etc.
-
- The pointer at the top of each "session" will remind you which
- columns will change using the arrow keys. UP and DOWN arrows
- increase and decrease addresses. The LEFT and RIGHT arrows
- move the column pointer around. You can touch any of the HEX
- values 0 through 9 or A through F to change the memory location
- value directly. I like the DIRECT entry, it's fast.
-
- Do you need to INSERT a value into a memory location?
-
- NOTE: The following explanation works ONLY IF you have run
- SEGOFF with a command line switch of /INS or -INS.
- This is to "protect" the innocent from themselves.
- To enable the INSert feature, add the switch /INS or -INS
- when you run SEGOFF, such as these examples:
- SEGOFF /INS
- or if you're using a Segment and Offset address, then
- SEGOFF 00040:0000 /INS
-
- (Actually, "/I" works as well....so does "-I")
-
- ****************************************************************
- Now....(these next 2 paragraphs ONLY if you've used /INS, okay?)
- ----------------------------------------------------------------
- If you need to INSERT a new value at a location in MEMORY,
- just bring that location up TO THE TOP OF THE COLUMN and press
- the INS key. When you enter a new value, keep in mind, if you
- use 2 characters, it assumes you're using HEX numbers. If you
- use 3 characters, it assumes you're using decimal numbers. If
- you use 0 characters or more than 3 characters, you get nothing.
-
- Explain that one more time, please....
- ....Okay!.... if you want to enter decimal 5, you may enter 005
- or 05, since 005 decimal and 05 hex are both equal to 5. However,
- remember that 20 hex is 032 decimal (ie the space character).
- If you were to enter just "32" for the space character, that
- would be a 32 HEX (which is 050 in decimal), which is NOT the
- space character at all, it's the number "2" in the ASCII charts.
- Another example is ASCII (decimal) 65, the capital letter "A".
- In HEX "talk," it's 41; in decimal "talk" it's 65. How would you
- input it? Just pick one of these two answers: 41 or 065
- If you get cold feet, just press enter with no value given and
- nothing will be done. A null entry does nothing, in other words.
- *****************************************************************
-
- Some other interesting places to look at are these:
- 0041:0000, the bits 6,7 (of 76543210) are the number of disk drives.
- 0041:0000, the bits 6,7 (of 76543210) are the # of parallel ports.
- 0041:0007, bit 5 tells whether or not the NUM LOCK key is down.
- F000:FFF5, 8 bytes contain the BIOS ROM DATE most of the time
- B800:00AC and see the S E G O F F from the same color screen
-
- If you see other interesting places for friends to look at, then
- please edit the file called SEGOFF.DAT included with this program
- and include it with this set of files. If you send me the
- information too, then I'll include it in the next version of
- SEGOFF, and give you proper credit unless you don't want me to
- use your name. Just tell me, because you might be in the witness
- protection plan and I don't want to divulge your name, etc.
-
- See if you can find the BIOS Date in your ROM chips....
- Old ROM chips are the reason, sometimes, that Hard Drives cannot
- be added easily to a system. Check this out with a local Ghuru.
- If you press enter with no address at the first screen then I'll
- provide F000:FFF5 for you to see the BIOS date in your machine.
- (hint: the date is mm/dd/yy, 8 bytes....look hard!)
-
- Anyway, have fun. You don't need to send me any contribution
- because FREEWARE is never having to say you're sorry because you
- didn't send any registration fee. La, la,la, La, La (Laura's
- theme....) fade out.......... time out for a commercial.
-
- Nope, no commercial... this is free. No registration fee.
- David Roper, 201 Winding Brook Drive, Garner, NC 27529
- (....Population 13,023 and growing)
-
- Not having to pay a registration fee, saves your lunch money.
- Come to GARNER and have lunch with me if you have the time,
- it's a nice place to live, and the folks are friendly, too.
-
- Send me a RAM address to look at for the next version, whydoncha?
- Reach me at CIS 73155,1171 or you can send me a letter,
- but if you expect a reply please include a SASE.
- David
- -----------------------------eof-----------------------------
-