 |
 |
| View previous topic :: View next topic |
| Author |
Message |
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Wed Apr 16, 2008 8:13 am |
|
|
Sorry, I didn't know what you needed as a result.
Since you need int8 then use the struct as shown in my code snip it.
2 chips can return a struct, or int16 and the int16 could be broken down into int8 using make8().
I've even done one where I needed an int16 but the chips were backwards, and I had to do something like make16(make8(varint16,1),make8(varint16,0)) or such. that is making a int16 from the results of the make8(). |
|
 |
edhaslam
Joined: 15 Jul 2005 Posts: 89 Location: UK
|
|
Posted: Wed Apr 16, 2008 8:35 am |
|
|
| treitmey wrote: | Sorry, I didn't know what you needed as a result.
Since you need int8 then use the struct as shown in my code snip it.
2 chips can return a struct, or int16 and the int16 could be broken down into int8 using make8().
I've even done one where I needed an int16 but the chips were backwards, and I had to do something like make16(make8(varint16,1),make8(varint16,0)) or such. that is making a int16 from the results of the make8(). |
Thanks, I'll give that a try. |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|