Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Changes
Octocat-spinner-32 README.md
Octocat-spinner-32 dist.ini
README.md

DCPU-16 Emulator and Assembler

Based on the specification here.

Includes an extra instruction HLT which stops execution of the current program (otherwise it will run forever unless you tell it to only execute a certain number of operations).

Emulator

perl -Ilib bin/dcpu16-execute [--iterations <n>] [--dump <outfile>] <binary>

Executes a DCPU-16 binary file. Runs until a HLT instruction is seen, unless --iterations is specified, in which case it runs for that many clock cycles. Produces a memory and register dump at the end in the file ./dcpu16.dump (or whatever file you specify with the --dump option).

Assembler

perl -Ilib bin/dcpu16-asm [--output <outfile>] <asm_file>

Creates a DCPU-16 binary from an assembler file. Assembler syntax is so far limited to the examples that are given in the specification. Output is written to ./a.out, or whatever filename is given in the --output option.

Something went wrong with that request. Please try again.