Fixed Address Projects

 

Some times, you will need to have a project starting at a fixed address (For a ROM, or special programs).

HP Dev allows you to do this type of things.

On the Pop-Up menu of the Project Brouser, you will find a property item. By Clicking on it, the Project Property Window will apear.

Then, you can check the Fixed Chexk Box and put your starting value in the Last Val edit.

When the project is fixed, the Fixed Check Box of the functions is enable. and you can fix the functions start point.

You will now be able to jump to your functions using GOSBVL or GOVLNG or to use them in RPL.

If one or more of your functions are fixed, the Linker will not work the same way.

Instead of putting the function in the order they apear in the project, the linker will folow this algoryhtme.

Build a list (LF) of all fixed function sorted by adress value.

Build a list (L) of all un fixed functions sorted by order of apearence in the project.

while (LF is not empty) do

While (At Least One function of the L List can be put in the Output File without problems for the first function of the LF list) do

Place this Function

Remove this function from the L List

Place first function of LF list

Remove First Function of LF list

While (L is not Empty) do

Place First Function of L

Remove First function of L.