Re: poke2 (to Rob)

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu