MONFIX(1) GENIX Programmer's Manual MONFIX(1)
NAME
monfix - a monitor maker
SYNOPSIS
monfix [ options ] file
DESCRIPTION
Monfix modifies the first 16 bytes of the text segment of file for
an NS16032-based board. File must contain an a.out format program.
Monfix makes the first text byte the entry point since any NS16032
board bootstrap program requires that the first text byte be the
entry point.
Monfix adds three instructions to the file: load module register,
load static base register, and branch to the real entry point. The
values for these three addresses are computed from the a.out header.
The default load address is zero. Instructions generated and start-
ing addresses are:
address instruction
0 lprw mod,modvalue
4 lprd sb,sbvalue
10 br entrypoint
-b number
Use number as the address where the program will be loaded.
Zero is default.
-e number
Real entry point is at address number. Monfix uses number as
the parameter for the br (third) instruction.
-m number
Initial MOD register value is number. Monfix uses number as
the parameter for the lprw (first) instruction.
-s number
Initial static base register value is number. Monfix uses
number as the parameter for the lprd (second) instruction.
All numbers are hexadecimal.
The default file is a.out.
FILES
a.out default output file
SEE ALSO
nburn(1)
Printed 11/16/83 1
MONFIX(1) GENIX Programmer's Manual MONFIX(1)
CROSS-SUPPORT
In a cross-support environment, the default output filee is a16.out.
Printed 11/16/83 2