dcpu16-gui

Crates.iodcpu16-gui
lib.rsdcpu16-gui
version0.2.0
created_at2015-06-15 17:35:13.288511+00
updated_at2016-12-15 01:39:32.502235+00
descriptionDCPU-16 emulator GUI
homepage
repositoryhttps://github.com/gustavla/dcpu16-gui
max_upload_size
id2385
size39,219
Gustav Larsson (gustavla)

documentation

README

Crates.io

DCPU-16 GUI

DCPU-16 emulator GUI written in Rust and Piston.

Installation

Make sure you have Rust/Cargo and SDL2. One of these lines might help with the latter:

$ brew install sdl2                 # macOS
$ apt-get install libsdl2-dev       # Ubuntu

Now install DCPU-16 and DCPU-16-GUI through Cargo:

$ cargo install dcpu16
$ cargo install dcpu16-gui

This will install a variety of binaries that all start with dcpu16, so try typing that in and hit tab.

Example

Prints "Hello world!" in green to the screen:

$ dcpu16-gui examples/hello.bin

To automatically attach a monitor to address 0x8000 (as in older programs), run with -m 0x8000.

Example 2

The next example is not assembled yet, so let's do that first:

$ dcpu16-assembler examples/rainbow.dasm16 -o examples/rainbow.bin

Now we can run it:

$ dcpu16-gui examples/rainbow.bin

Tools

To assemble dasm16 files into bin files, use dcpu16.

Commit count: 0

cargo fmt