CPU::Emulator::DCPU16An emulator for Notch's DCPU-16 virtual CPU for the game 0x10c | |
Download |
CPU::Emulator::DCPU16 Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Simon Wistow
- Publisher web site:
- http://search.cpan.org/~simonw/
CPU::Emulator::DCPU16 Tags
CPU::Emulator::DCPU16 Description
DCPU-16 is a spec for a virtual CPU by Notch from Mojang (of Minecraft fame).SYNOPSIS open(my $fh, ">:raw", $file) || die "Couldn't read file $file: $!"; my $program = do { local $/=undef; < $fh > }; $program = CPU::Emulator::DCPU16::Assembler->assemble($program) if $file =~ /\.dasm(16)?$/; # Create a new CPU and load a file my $cpu = CPU::Emulator::DCPU16->new(); $cpu->load($program); # Run it ... $cpu->run; # ... which is basically the same as do { $cpu->step } until $cpu->halt;Product's homepage
CPU::Emulator::DCPU16 Related Software