The way the Target PIC is used maybe set-up in the file PIC18Fxxx.INI.
This is loaded by IRTC and extends RAMF18F.EXE by compiling the PIC18F set-up words and the talker, TLM, code. The positions and size of the memory spaces and stack positions are set.
Below is the source for PIC18F248;
\ Initialisation File for PIC18F248 October 15th, 2003 - 16:59
FPATH+ C:\WIN32FOR\PIC18F;C:\WIN32FOR\PIC18F\18FMAN;C:\WIN32FOR\PIC18F\DEMO
115200 8 NOPARITY TWOSTOPBITS SET-COM1
META IN-META
SET-FF \ $0FF to the Target image
IN-META
$0000 VALUE RAM-START \ Code, File and EEPROM addresses
$02FF VALUE RAM-END
$0000 VALUE ROM-START
$0200 VALUE APP-START
$3FFF VALUE ROM-END
$0000 VALUE EE2-START
$00FF VALUE EE2-END
FLOAD REG18F248.F \ Additional CAN registers
FLOAD 18FTLM.F \ TLM load file
H: "PIC18F S" PIC18F248 " ;
FORTH ' "PIC18F IS PIC-TYPE
2 TO PANELS \ Number of Code Flash Panels
FORTH HERE FENCE !
HOST
IRTC-MENU
\ Configuration Defaults
$2700 C1 W!
$0F0F C2 W!
$0100 C3 W!
$0085 C4 W!
$C00F C5 W!
$E00F C6 W!
$400F C7 W!
HS-OSC+PLL \ Set your configuration here
BROWN-OUT-4V2
.STATISTICS
<MARK> NEW-APP
CR CR .( IRTC for PIC18F248 Running in HOST mode )
The start and end of the file space and code space are set. These are used to warn if exceeded during compilation. The size the Flash device, number of panels, is set along with any extra register definitions and the TLM object code is loaded into the PC Target image.
The configuration byte image is loaded with the erased defaults and then modified by and configuration setting required.