Subject:
|
Re: Some comments (long) (was: Something else is needed, I think...)
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Fri, 7 May 1999 00:31:34 GMT
|
Viewed:
|
1168 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
Chris Phillips <chris.phillips@computerboards.com> wrote:
> Do you think it would be possible with improved firmware to support
> inline H8 code embedded in a user program? For example, a special byte code
> could indicate that the following code should be executed directly by a
> subroutine CALL until it decided to RETurn? This might allow compilers to
> embed high-performance, efficient library code into a user program instead
> of relying on the firmware to implement every feature, or byte code
> operations to support every possibility.
You might be able to do this if you were clever about it; you might be able
to define an opcode that defines a native subroutine that you can call with
another opcode, say, that passes in 16- or 32-bit values in registers and
expects you store the result in registers also, something like how the math
routines work now. Somebody mentioned position independent code (or the
lack thereof); the RCX doesn't support this well because PC-relative
branches only have the range of a signed char. GCC at least uses absolute
jumps in place of longer branches.
I think inserting native code is getting a bit overkill, but that is just
my $0.02.
> I'm not surprised that MulDiv isn't supported directly by the H8. But do
> you know if the H8's MULtiply instruction returns a 32-bit value? (On
> 16-bit 80x86 processors, for example, this is done using two registers: AX
> for the low word and DX for the high word of the result.) I believe that
> this would be a requirement for implementing a MULDIV byte code on the RCX.
Actually, the H8 is worse than this. It only supports 8-bit multiplies,
storing the result in a 16-bit register. 16-bit and 32-bit operations are
supported in software by routines located in ROM.
> > - have you considered writing native code?
>
> I actually have considered writing native H8 code. Unfortunately, I have
> been stymied by several factors:
I asked the question because, from the things it sounded like you wanted to
do, LegOS might be a better development environment for your needs. Then
again, you are clearly one of the people who is running into trouble with
the development environment, which can be a complete pain. (I know how it
is, it took me a while to get it set up on my everyday machine.)
Also, that you want to do firmware development also means you need to get
over the hurdle :)
-Kekoa
|
|
Message has 1 Reply:
Message is in Reply To:
42 Messages in This Thread: ![Some comments (long) (was: Something else is needed, I think...) -Mark Tarrabain (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (S. Crawshaw) (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -Wes Matchett (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Some more comments and suggestions. -Mark Tarrabain (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Some more comments and suggestions. -Todd Lehman (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some more comments and suggestions. -Mark Tarrabain (6-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Request for new list -Joel Shafer (7-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![group lugnet.robotics.rcx created -Todd Lehman (7-May-99 to lugnet.robotics, lugnet.announce)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Would-be hacker queries. / Re: Request for new list -lego-robotics@crynwr.com (Aa-Tchoo!) (8-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Would-be hacker queries. / Re: Request for new list -lego-robotics@crynwr.com (stephen p spackman) (8-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Would-be hacker queries. / Re: Request for new list -lego-robotics@crynwr.com (John A. Tamplin) (10-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Would-be hacker queries. / Re: Request for new list -Eric Lind (9-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (Laurentino Martins) (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (John A. Tamplin) (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Some comments (long) -Mark Tarrabain (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (John A. Tamplin) (6-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (Paul Speed) (7-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (stephen p spackman) (8-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (John A. Tamplin) (8-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (stephen p spackman) (8-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (John A. Tamplin) (10-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![.rcx alternative firmware group/list -Todd Lehman (10-May-99 to lugnet.robotics, lugnet.admin.general)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![FWD: Re: Some comments (long) -Mark Tarrabain (8-May-99 to lugnet.robotics.rcx)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (Paul Speed) (9-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Some comments (long) -Kekoa Proudfoot (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (John A. Tamplin) (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -Kekoa Proudfoot (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (John A. Tamplin) (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Some comments (long) -Kekoa Proudfoot (6-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Some comments (long) -Kekoa Proudfoot (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -lego-robotics@crynwr.com (John A. Tamplin) (6-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Some comments (long) -Kekoa Proudfoot (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -Mark Tarrabain (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -Kekoa Proudfoot (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -Mark R. David (7-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) -Mark Tarrabain (7-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: Some comments (long) (was: Something else is needed, I think...) -Chris Phillips (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) (was: Something else is needed, I think...) -Kekoa Proudfoot (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Some comments (long) (was: Something else is needed, I think...) -Chris Phillips (6-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Some comments (long) (was: Something else is needed, I think...) -Mark Tarrabain (6-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: Some comments (long) (was: Something else is needed, I think...) -Kekoa Proudfoot (7-May-99 to lugnet.robotics)](/news/x.gif)
- 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
|
|
|
|