I was just curious how you guys handle mirroring properly. Heres my implementation:
I have 16-bitsof addressable memory allocated in the heap and accessed by a pointer (aka $0000-$FFFF).
In other words:
char *memory = malloc(0xFFFF);
Now,
Every 50ms (with a timer) I run a loop that takes all the data from $0000-$07FF and copies them to $0800-$1FFF. This is my implementation of "mirroring" But I really think its inefficient. What do you guys recommend?
I have 16-bitsof addressable memory allocated in the heap and accessed by a pointer (aka $0000-$FFFF).
In other words:
char *memory = malloc(0xFFFF);
Now,
Every 50ms (with a timer) I run a loop that takes all the data from $0000-$07FF and copies them to $0800-$1FFF. This is my implementation of "mirroring" But I really think its inefficient. What do you guys recommend?