Given any two of segment, offset, or absolute addresses, calculate the third value.
ABSADR v1.0 Absolute address calcluations.
Copyright (c) 1991 Thomas M. Peters
Purpose: Given any two of segment, offset, or absolute addresses,
calculate the third value.
Usage:
Enter ABSADR at the command line. The program will prompt you for
three values. You must enter TWO of them. Press ENTER only, not a
zero, for the unknown parameter. ABSADR then calculates the third
value and displays the entire address in the form:
ssss:oooo = aaaaaaa
ssss = segment
oooo = offset
aaaaaa = absolute
Limitations:
ABSADR is written in Microsoft C, a language I rarely use, and
therefore has no elaborate error checking. It is meant to be a simple
programming aid and as such, has certain limitations.
1. It is easy to specify a segment and offset that form an absolute
address beyond the addressing capacity of IBM-PC compatible machines.
No checking is done for this, and though the answer given by ABSADR is
valid, it is probably inapplicable.
2. It is likewise not hard to enter a segment and absolute address for
which no offset can reach. CHECK YOUR RESULTS! Segment and offset
addresses must both lie in the range of 0000h to FFFFh. If you get a
segment or offset from ABSADR that is more than four digits, the
problem cannot be solved as you have entered it.
The only way ABSADR signals this situation is to output an address
more than four digits long in the segment or offset fields.
One way to check the results is to feed the output values back into
the program and check the answer.
3. Very little input value range checking is done. ABSADR will try to
make sense of nearly anything you enter, with no guarantee that the
results will mean anything. About all it does is complain if the
number of parameters input was not two.
File List:
ABSADR.DOC
3Kb
ABSADR.EXE
12Kb
Similar code
Assembler Laboratory V1.3 Beta 1
(Popularity: ) : A very good assembler and Watcom C IDE with a lot of very useful features. Now with full Watcom C/C++ ... ASM Edit v1.8
(Popularity: ) : IDE with syntax-colors for ASM files, used with external Assembler, Linker and Debugger programs. Help system with mnemonics up to ... VECTOR VIEW
(Popularity: ) : VECTOR VIEW is a utility which allows you to save all of your Interrupt vector addresses to a data file, ...