OpenBoot 2.x Command Reference Manual

Using dlbin to Load FCode or Binary Over a Serial Port

FCode and binary programs loaded with dlbin must be a.out files. dlbin loads the files at the entry point indicated in the a.out header. Link binary files for 4000 (hex). Recent versions of the FCode Tokenizer create an a.out file with entry point 4000.

To load the file over the serial line, connect the system's serial port A to a machine that is able to transfer a file on request. The following example assumes a tip window setup. (See Appendix A, Testing with a Terminal Emulator", for information on this procedure.)

  1. At the ok prompt, type:


    ok dlbin 
    

  2. In the TIP window of the other system, send the file:


    ~C (local command) cat filename 
    (Away two seconds) 

The ok prompt appears on the screen of the system to which the file is loaded.

To execute an FCode program, type:


ok 4000 1 byte-load 
ok 

To execute a binary program, type:


ok go