GithubHelp home page GithubHelp logo

Comments (3)

 avatar commented on July 18, 2024

I've just realized that keyboard also sends return value as response in some handler. It's at least consistent on MSG_ERROR. Perhaps I could do the same with cartridge, but it feels weird returning 1 on error, which is MSG_ACK and kind of indicate success.

from ycpu.

ZaneDubya avatar ZaneDubya commented on July 18, 2024

@Naryosha Would you like to propose a change to the hardware spec, or are you comfortable leaving as is?

from ycpu.

 avatar commented on July 18, 2024

Since mentioning that R0 could be something else rather than MSG_* would simply fix the issue, for now I'm comfortable as it is. I'll mention it in my own docs though because it's still an unofficial decision.

I see there are two ways to properly resolve this:

  1. change YCPU specs (mainly section about HWQ $02) to match hardware specs: as written above. Hardware may write to R0, R1, and R2 with anything as defined in their specs.
  2. change hardware specs to match YCPU specs: Hardware may only return MSG_* in R0. It also may not modify R1 and R2 if MSG_ERROR is sent via R0.

If I were to resolve it, it'd take some time. 😅

from ycpu.

Related Issues (8)

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.