1. poke2 (to Rob)
- Posted by r.schr at t-online.de Sep 15, 2001
- 452 views
Hi Rob, do you see the neccessity to have a poke2() implemented into Euphoria? What is your opinion or your recommendation instead? Have a nice day, Rolf
2. Re: poke2 (to Rob)
- Posted by Robert Craig <rds at RapidEuphoria.com> Sep 15, 2001
- 441 views
Rolf writes: > do you see the neccessity to have a poke2() > implemented into Euphoria? > What is your opinion or your recommendation instead? I haven't seen a big demand for poke2(). If I added it, I'd also have to add peek2u() and peek2s() for completeness. In most cases where it comes up, speed is not critical, so (assuming a "little-endian" Intel machine) you could use: poke(address, {number, floor(number/256)}) On my 350 Mhz Pentium, I can do the above statement over 1.4 million times per second. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
3. Re: poke2 (to Rob)
- Posted by Kat <gertie at PELL.NET> Sep 15, 2001
- 433 views
On 15 Sep 2001, at 19:18, Robert Craig wrote: > > Rolf writes: > > do you see the neccessity to have a poke2() > > implemented into Euphoria? > > What is your opinion or your recommendation instead? > > I haven't seen a big demand for poke2(). > If I added it, I'd also have to add peek2u() and peek2s() > for completeness. In most cases where it comes up, > speed is not critical, so (assuming a "little-endian" Intel machine) > you could use: > > poke(address, {number, floor(number/256)}) > > On my 350 Mhz Pentium, I can do the above statement > over 1.4 million times per second. Ouch!! 233 clocks to execute one poke? Kat
4. Re: poke2 (to Rob)
- Posted by r.schr at t-online.de Sep 16, 2001
- 447 views
Robert Craig wrote: > > > Rolf writes: > > do you see the neccessity to have a poke2() > > implemented into Euphoria? > > What is your opinion or your recommendation instead? > > I haven't seen a big demand for poke2(). > If I added it, I'd also have to add peek2u() and peek2s() > for completeness. In most cases where it comes up, > speed is not critical, so (assuming a "little-endian" Intel machine) > you could use: > > poke(address, {number, floor(number/256)}) > > On my 350 Mhz Pentium, I can do the above statement > over 1.4 million times per second. > Rob, it's _not_ a question of speed! It's a question how to write a word with EU! The point here is that if you watch the lines of the 16-bit-ISA bus with a logic state analyzer, its a difference writing two bytes one after the other instead writing 16 bits at once (a word), which it's possible with C. I'm not familiar with assembler. I would ask if someone is able to write an EU-routine to include written with assembler. It would be sufficient for my demands. Is their anyone able to help me? I couldn't find anything in the archive. Thanks, and have a nice day, Rolf
5. Re: poke2 (to Rob)
- Posted by r.schr at t-online.de Sep 16, 2001
- 448 views
Error correction of my last mail: ... which is possible with C. ^^ Rolf