I'm writing a program in C, and I'm using a subroutine written in assembler that utilises a certaing ammount of memory (128 bytes starting from #0520h)
Instead of dynamically allocating it with malloc() I'd just like to tell the C/C++ linker/compiler not to use that part of a memory map to prevent overwriting working data between my asm and c routines. Any idea how to do this?
I tried to use dynamic allocation but it would requite too many changes to my assembler routine so I would like to try static allocation