21.9. Other Programming Techniques for Assembly Language
21.9.1. Allocating Data Space for Variables
In the previous assembly language function examples, the data processing can be handled with just a few registers, so it does not use any stack memory at all. By default, the stack memory allocation is done for us in the default start-up code. We could reduce the stack size allocated by modifying the Stack_Size definition from 0x200 to other stack size required:
For most applications, there would be fair amount of data variables. For simple applications, we can also allocate memory space in the RAM. For example, ...