Re: poke2 (to Rob)
- Posted by r.schr at t-online.de Sep 16, 2001
- 446 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