GitXplorerGitXplorer
g

dcpu16-gui

public
3 stars
2 forks
1 issues

Commits

List of commits on branch master.
Unverified
3c6930adb5e574ca875381f957cd6632bcd8882c

Move devices into separate folder

ggustavla committed 8 years ago
Unverified
7e692158d7c00a22c6d063e333912c0b98d5adb9

Add feature complete floppy drive device

ggustavla committed 8 years ago
Unverified
5482cb21f652ae469d5d12750012f2fcad8cf53b

Update to dcpu16 0.3.0 and add run for all devices

ggustavla committed 8 years ago
Unverified
446f90d570d967eb9caff175229377fe802b9f2e

Add --help and --version to CLI

ggustavla committed 8 years ago
Unverified
6b561803e5c6b88eb7db412afb0a4fcf768a0f17

Removed unused import

ggustavla committed 8 years ago
Unverified
e3a554d5e3d496f4c08967f9b9bc8c8819adcac7

Add more-examples to .gitignore

ggustavla committed 8 years ago

README

The README file for this repository.

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.

Devices

Implemented devices:

  • Monitor (LEM1802)
  • Generic keyboard
  • Floppy drive (M35FD)

They are attached with device indices 0 (monitor), 1 (keyboard), and 2 (floppy). The floppy drive is empty at start, but you have an all-zero floppy disk that can be inserted/ejected by hitting F1.

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.