Giter Club home page Giter Club logo

dcpu16's People

Contributors

onbjerg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dcpu16's Issues

Firmware

There needs to be some simple firmware on the DCPU16 in order to load programs. Most emulators just dump the contents of a program into memory, but I want it to feel a bit more "realistic".

The firmware would try to find some compatible storage device (for now just the M35FD) and read contents from the device into memory.

There was never any official DCPU16 firmware, so this potentially breaks compatibility with all existing DCPU16 programs, unless we can be smart about how the firmware works (e.g. by putting the firmware in high memory as opposed to low memory).

A possible future enhancement to the firmware could be to implement device selection if multiple compatible storage devices are found.

Some relevant information: https://www.reddit.com/r/0x10c/comments/161p6y/dcpu16_booting_mechanism_also_memory_question/

Multi-file linking

Enable the assembler to assemble multiple files and link them together. This improves the developer experience by allowing them to split up their project in multiple files and reuse files common subroutines and macros.

I can think of two ways to determine the entrypoint of the program in this scenario: either by requiring a special .entry directive or simply just going by the order of the assembled files, e.g. for dasm a.dasm b.dasm the entrypoint would be the first instruction in a.dasm.

Directives

Implement preprocessor directives to aid in making programs:

  • .dat: Writes one or more literals directly to memory
  • .org: Moves the following bytecode segment up to a specific point in memory
  • .macro/.macroend: Defines macros

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.