Skip to content

jackgill/scrat-dcpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This project provides an assembler, disassembler, and emulator for Notch's DCPU-16. I aim for compliance with version 1.7 of Notch's spec. It's named scrat-DCPU since I'm about as good at writing assemblers and emulators as Scrat is at protecting his acorn :)

Getting started

This project requires Perl 5.10 or later, and the Tk module from CPAN.

To get started, assemble one of the test files:

perl bin/asm.pl test/test_set.asm

This will produce a object code file named test/test_set.o. You can execute it using the emulator:

perl bin/emu.pl test/test_set.o

There's also a disassembler:

perl bin/dasm.pl test/test_set.o

Limitations:

  • Monitor doesn't support color, or blinking
  • Emulator does not accurately simulate processor cycle rate

About

DCPU learning project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published