Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 801 Bytes

README.markdown

File metadata and controls

35 lines (21 loc) · 801 Bytes

dcpu16-hs

Implementation of Notch's dcpu-16 CPU in Haskell. This project includes an assembler and an emulator.

Status

We can assemble and run at least Notch's example program, this fibonacci example, and the stuff in examples/.

Like the assembler Notch uses, short form for labels isn't supported yet.

The emulator just runs until it crashes, there is no stopping strategy for now.

Building

cabal configure && cabal build

Running

./dist/build/dcpu16-assembler/dcpu16-assembler examples/notch.s

This produces a.out.

./dist/build/dcpu16-emulator/dcpu16-emulator a.out

You should probably redirect the output to a file.