Memory declarations?

Software questions and issues with the FV-1

Moderator: frank

Post Reply
sad1024
Posts: 34
Joined: Mon May 24, 2010 3:34 pm

Memory declarations?

Post by sad1024 »

What is the purpose of memory declarations?
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post by frank »

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
mweavers
Posts: 15
Joined: Sun May 19, 2013 6:22 pm

Memory address down-counter

Post by mweavers »

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?
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post by frank »

Correct, the counter wraps around so all the buffers are moving through the address space.
Frank Thomson
Experimental Noize
Post Reply