Comments (3)
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.
@Naryosha Would you like to propose a change to the hardware spec, or are you comfortable leaving as is?
from ycpu.
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:
- 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. - change hardware specs to match YCPU specs: Hardware may only return
MSG_*
in R0. It also may not modify R1 and R2 ifMSG_ERROR
is sent via R0.
If I were to resolve it, it'd take some time. 😅
from ycpu.
Related Issues (8)
- Add a screenshot! HOT 5
- Update documentation, assembler, and emulator to use segments.
- 'BIT' method in YCPU.Instructions should be renamed to 'BTI' HOT 1
- Emulator's BTI pattern does not match spec. HOT 1
- Emulator's BitPatternALU doesn't quite match spec
- Need clarification on segment size bits HOT 4
- Conflicting information about control registers in user mode HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ycpu.