Giter Site home page Giter Site logo

Comments (4)

redfast00 avatar redfast00 commented on May 24, 2024

Over at https://github.com/redfast00/RCPU (a similar project in Python with instructions inspired by 16bitjs), I simply push the syscall number onto the stack, along with arguments, and place return values on the stack as well. The SYS instruction then pop's and pushes onto the stack.

from 16bitjs.

francisrstokes avatar francisrstokes commented on May 24, 2024

@hlide I agree that these instructions can be merged. What would you name this common instruction? Also as a side note, if you want to implement this feature and a rewrite of LDV, please keep make them in separate pull requests.

@redfast00 ah that's also a nice way to do it. I was going for a similar kind of approach to to x86 0x80 interrupt (https://en.wikibooks.org/wiki/X86_Assembly/Interfacing_with_Linux), which basically has the registers set up with arguments. I don't think this needs to be changed to be honest, but there are definitely a bunch of different ways you could do it.

from 16bitjs.

redfast00 avatar redfast00 commented on May 24, 2024

@francisrstokes it does indeed not have to be changed, I think it works the way it is. Sorry for hijacking this issue, but is there a roadmap of things to do? Don't have time for it now (working on RCPU), but I'd love to contribute in the future.

from 16bitjs.

francisrstokes avatar francisrstokes commented on May 24, 2024

@redfast00 no worries. I'm starting to use the git issues with enhancement tags to create extension proposals. Discussion can take place in the issues (like this one). I've created a CONTRIBUTING.md file repo that kind of lays out the main ideas with creating proposals. Your project is looking great by the way, it's really coming along!

from 16bitjs.

Related Issues (20)

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.