Before using any of the DCPU tools in this project, we must set the
environment variable to a path where all our DCPU code will live. For example:
$DCPUROOT environment variable is used to find package sources and
resolve dependencies. It lists the directory location where all the DCPU tools
should look for source code and compiled package archives.
The path specified by
$DCPUROOT must have a prescribed structure:
src/directory holds source code for all packages and programs.
pkg/directory holds assembled package archives. These can be imported into other DCPU programs/packages.
bin/directory holds the final, linked executable programs, which can be run on the emulator.
Here is an example of the expected directory layout:
$HOME/dcpu/ src/ foo/ bar/ (DASM source for package 'bar') x.dasm quux/ (DASM source for package 'quux') y.dasm pkg/ foo/ bar.a (Installed package archive) bin/ foo/ quux.bin (Installed executable)