Subject:
|
Re: Adding syscalls/opcodes to NXT-G
|
Newsgroups:
|
lugnet.robotics.nxt
|
Date:
|
Wed, 21 Mar 2007 14:07:52 GMT
|
Viewed:
|
19345 times
|
| |
| |
In lugnet.robotics.nxt, Guy Ziv wrote:
> the NXT-G compiler
> has a WriteIOMap function which has as an input a binary U8 array. One can
> change this syscall in the FW so when the module name is left empty (not a case
> I believe ever happens in any existing NXT-G blocks) the FW takes the binary
> array, wraps it and create from it a new program clump. This will allow
> executing syscalls and several other opcodes from NXT-G.
Can you flesh this out a bit? What do you have in mind when you say "create
from it a new program clump"? The current version of the firmware limits the
size of this buffer to 64 bytes. I increased that limit in my recent changes to
be 800 bytes.
The existing VM code is written so that it executes all the program code as it
reads the .rxe file directly from the flash memory. Injecting a byte stream
from a jury-rigged IOMapWrite syscall into the existing FM program execution
logic seems like it would be rather complicated. Do you envision that this code
would execute as a parallel clump or would it act more like a subroutine call?
John Hansen
|
|
Message has 1 Reply: | | Re: Adding syscalls/opcodes to NXT-G
|
| (...) John - I know you don't like this and I agree that the best solution is NI changing their compiler to allow extending firmware with new syscalls. The way things work, I'm afraid, this will not happen anytime soon. I'm trying to suggest (...) (18 years ago, 22-Mar-07, to lugnet.robotics.nxt)
|
Message is in Reply To:
| | Adding syscalls/opcodes to NXT-G
|
| One of the biggest problems with extending the current FW is that the NI compiler for NXT-G/NXTToolkit is not so flexible. In particular, one can't add new syscalls. Here's a suggestion I would be happy to hear your ideas on - the NXT-G compiler has (...) (18 years ago, 21-Mar-07, to lugnet.robotics.nxt)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|