Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (27 sloc) 1.176 kb

Environment variables

Before using any of the DCPU tools in this project, we must set the $DCPUROOT environment variable to a path where all our DCPU code will live. For example:

export DCPUROOT=$HOME/dcpu

The $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:

  • The src/ directory holds source code for all packages and programs.
  • The pkg/ directory holds assembled package archives. These can be imported into other DCPU programs/packages.
  • The 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)
Jump to Line
Something went wrong with that request. Please try again.