dankuck / foo-dcpu16 Goto Github PK
View Code? Open in Web Editor NEWYet another DCPU16 emulator
Yet another DCPU16 emulator
foo-dcpu16 is a DCPU16 compiler and emulator. DCPU16 is the specification for the computer systems emulated in the multiplayer game "0x10c" (http://0x10c.com/). foo-dcpu16 can compile assembler code and save it to a file. It conforms to 0xSCA standards (https://github.com/0x10cStandardsCommittee/0x10c-Standards). It has a black and white console emulator with some keyboard input. The console emulator can load code from assembly code or a compiled file. It also has a test harness which will allow targeted manipulation of the chip and data. The compiler does some optimization for space and speed. == Compiling == java -cp DCPU.jar Assembler source.asm compiled.x == Running the Console == java -cp DCPU.jar DCPU16Screen source.asm OR java -cp DCPU.jar DCPU16Screen compiled.x == Running the Test Harness == java -cp DCPU.jar Harness Then follow the on-screen menus. == Examples == See the screen work: java -cp DCPU.jar DCPU16Screen examples/TestScreen.asm Notch's test code: java -cp DCPU.jar DCPU16Screen examples/Test1.asm
When a macro call produces several lines and is followed by an IF*, we really should show a warning.
Unless it's too hard.
Macros need to work in their own scope while also accepting labels from outer scopes.
Might be nice for reps to do the same, but they have some 0xSCA rules about labels.
Example macro that needs scope written by Notch (yeah, people use this):
; Reading characters from the keyboard
; by Markus Persson
push(i)
set i,[keypointer]
add i,0x9000
set target,[i]
ife target,0
jmp end
set [i],0
add [keypointer], 1
and [keypointer], 0xf
:end
pop(i)
}
:keypointer
dat 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.