The examples are ported on several boards. You can select the board on the command line with make or by changing the board.def file.
The following boards are supported:
m68hc11-32k | 68HC11 generic board with 32K ram and 32K rom
Data | 0x1040..0x7fff |
Stack | 0x7fff |
Text | 0x8000..0xffff |
Prefer this board if you want to use the simulator.
|
m68hc11-cme11 | Axiom Manufacturing CME11 board with Buffalo monitor
Data | 0x1040..0x1fff |
Stack | 0x1fff |
Text | 0x2000..0x7fff |
|
m68hc11-ebcs
| 68HC11 board with 8K ram (SCz board)
Data | 0xE000..0xE1ff |
Stack | 0x0ff |
Text | 0xE200..0xFfff |
|
m68hc12-axcmd12 | Axiom Manufacturing CMD12 board with DBug monitor
Data | 0x2000..0x2fff |
Stack | 0x3000 |
Text | 0x3000..0x8000 |
|
The safest way is to change the file config/board.def and update the BOARD
definition by changing the line:
BOARD=board-name
where board-name is the name of the board picked from the table above.
If you prefer not modify this file, you pass the BOARD=board-name
option to make but you must be very careful that the lib directory is compiled for the same board.
Before launching make you should make sure the GNU Binutils and Gcc executables are in your path. Then, proceed with the following commands:
make
or
make BOARD=board-name
This will build the examples in all the sub-directories. You can then check the programs by typing:
m6811-elf-run simple/simple.elf
m6811-elf-run calculator/calc.elf
m6811-elf-run trap/trap.elf