Memory declarations?
Moderator: frank
Memory declarations?
What is the purpose of memory declarations?
To name a block of memory and be able to refer to it by name rather than manually mapping out the memory and using addresses. Less errors and if you need to adjust the size at a later time you do not need to recalculate all the addresses, the assembler will do it for you.
Frank Thomson
Experimental Noize
Experimental Noize
Memory address down-counter
My question is about the down-counter address offset used to effectively 'shift' samples through a memory buffer:
The way I understand it, there is an address offset in the background which gets added to all read and write operations to SRAM, and automatically decrements for each sample cycle.
Would I be correct in saying that when this down-counter reaches zero, it's next decrement wraps it around to 32767?
I.E. All mem-declared buffers are 'moving' through the physical address space?
The way I understand it, there is an address offset in the background which gets added to all read and write operations to SRAM, and automatically decrements for each sample cycle.
Would I be correct in saying that when this down-counter reaches zero, it's next decrement wraps it around to 32767?
I.E. All mem-declared buffers are 'moving' through the physical address space?
Correct, the counter wraps around so all the buffers are moving through the address space.
Frank Thomson
Experimental Noize
Experimental Noize