David Richards

Zero Page RAM Allocation

Discussion created by David Richards on Aug 5, 2009
Latest reply on Aug 5, 2009 by CompilerGuru

I'm using an HCS08QB4 and hitting memory problems. All variables are going into 0x100 - 0x15F which is where the stack also resides. Zero page RAM from 0x60 - 0xFF is not being used. How do I get variables to be allocated to zero page?

I have tried various combinations of #pragma segment and int near x, but I can't get it to work. e.g. Link error L1907. Can somebody please supply a simple example as I need this 160 bytes of RAM.