Code Monkey home page Code Monkey logo

dcpu's People

Contributors

geal avatar yamakaky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dcpu's Issues

Specify line and file of the error

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.

Weird parsing of square brackets content

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 } }.

DuplicatedLabel("LBB10_5")

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

No support for 32 bit .dat's

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 not supported

.comm is a linker-only instruction ; please add it to the ignore list.

Example: .comm driver_keyboard,11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.