aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-04-11 10:27:14 -0500
committerJesse Luehrs <doy@tozt.net>2012-04-11 10:27:14 -0500
commit923f30ac2462e4688f9446803787935b1e6e480e (patch)
tree65cf3a508d03b184e0fa4a0ac7a26a1a1dc5e56e /README
parent62c36e6e09bd939c02d575396fc9cde1f50e9838 (diff)
downloadgames-emulation-dcpu16-923f30ac2462e4688f9446803787935b1e6e480e.tar.gz
games-emulation-dcpu16-923f30ac2462e4688f9446803787935b1e6e480e.zip
add README
Diffstat (limited to 'README')
-rw-r--r--README24
1 files changed, 24 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..cd10657
--- /dev/null
+++ b/README
@@ -0,0 +1,24 @@
+# DCPU-16 Emulator and Assembler #
+
+Based on the specification [here](http://0x10c.com/doc/dcpu-16.txt).
+
+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.