-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to call all syscalls #2
Comments
Please feel free to make a pull request on this; we may need to do some discussion on implementation since this will have to be a breaking change and the example library will most likely have to be rewritten. |
A quick idea: if the instuction cell is 255, we look to the next cell and add that number to 255 and then call the syscall with the sum. We'll be able to get 512 syscalls with this, and it (mostly) doesn't break the examples, except if they use |
This wouldn't be consistent with the way large numbers are handled in multi-byte argument values, where large cells are combined as big endian values. To be consistent with that, the argument form would have to change to something like:
On the other hand, given how uncommon it would be to use those higher-value syscalls, maybe this as a weird edge-case would be fine. |
We're currently using this as our production HTTP server 😉.
Since tape overflowing is implemented correctly, if you increment a cell that holds 255, it will wrap back to 0. This means that we aren't able to call all Linux syscalls, only those under 255.
The text was updated successfully, but these errors were encountered: