1. poke2 (to Rob)

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

new topic     » topic index » view message » categorize

2. Re: poke2 (to Rob)

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: poke2 (to Rob)

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: poke2 (to Rob)

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: poke2 (to Rob)

Error correction of my last mail:

...  which is possible with C.
           ^^

Rolf

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu