yamakaky / dcpu Goto Github PK
View Code? Open in Web Editor NEWA DCPU-16 emulator and DASM (dis)assembler with a library interface
A DCPU-16 emulator and DASM (dis)assembler with a library interface
Right now the error printed doesn't include nor the line nor the file.
It would be good to add it, as well as the column if possible.
With this code...
This code won't compile:
:end.test
set PC, end.test
Unknown: ".test"
When trying to use square brackets, the parsing inside is weirdly done.
Minimal example : set [test + J + 1], 1
Expected result : compiles and actually precomputes test + 1
Actual result : doesn't compile and I get the error Error: Error { kind: UnknownLabel("J"), state: State { next_error: None, backtrace: None } }
.
Syntax is as follow:
:label .zero
It has been deprecated: announcement.
Looks like this is blocked by docopt/docopt.rs#128. I will follow up in this issue when they have a new release ready.
Relevant pieces of code:
:_LBB10_5
SET A, [J+0xffff]
SET A, [A+0x1]
JSR memoryManager_malloc
SET B, [J+0xffff]
SET [B], A
SET PC, _LBB10_9
:_LJTI10_0
.dat _LBB10_5
.dat _LBB10_6
.dat _LBB10_7
.dat _LBB10_8
The following code:
.dat 1934226965
Will crash with:
Unknown (line 1, row 1): ".dat 1934226965"
This code is output by Clang/LLVM in the following scenario:
HardwareInfo lem1802_hardwareInfo = (HardwareInfo) {
.hardware_id = 0x7349f615,
.hardware_version = 0x1802,
.manufacturer = 0x1c6c8b36
}
.comm is a linker-only instruction ; please add it to the ignore list.
Example: .comm driver_keyboard,11
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.