Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Help needed:- what's the quickest way to store 256 bytes of data?

2006-02-13 by thekenhunt

I have an application which needs to store 256 bytes of data. My
current (C) solution is way too slow. Could anyone point me to the
fastest way to go about reading a fixe number of bytes into an
array/memory location using assembler? ie how can I replace the loop
below most efficiently.

char mydata[256];
void myloop()
    {
    for(d=256;d;d--) mydata[d]=PIND;
    }

many thanks

Ken

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.