Searching \ for '[PIC]: Initializing IDATA segment' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/memory.htm?key=data
Search entire site for: 'Initializing IDATA segment'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Initializing IDATA segment'
2001\03\27@153318 by Joan Ilari

flavicon
face
How can I initialize a data segment defined as IDATA (initialized
data) in a MPASM assembly file within MPLAB ?

In Chapter 9 of MPASM User's Guide it makes reference to the
web site of Microhip, but I have been unable to find there
anything related with this subject.

Thanks!

--------------------------------------------------------------
    Joan Ilari                 spam_OUTjoan.ilariTakeThisOuTspamterra.es
    Barcelona                  Voice:  +34 93 431 96 39
    Spain

"I've seen things you people wouldn't believe. Attack ships on
fire off the shoulder of Orion. I watched C-beams glitter in
the dark near the Tannhauser gate. All those moments will be
lost in time, like tears in rain. Time to die..."
                                              -Blade Runner-
---------------------------------------------------------------

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu


2001\03\27@222208 by Olin Lathrop

face picon face
> How can I initialize a data segment defined as IDATA (initialized
> data) in a MPASM assembly file within MPLAB ?

IDATA is a hack where the constants you want in RAM after reset are really
saved in program memory.  A special data loader routine is supposedly run at
startup to copy your initial values from program memory to RAM.  I sortof
remember the data loader is jumped to from the first 4 instructions, then it
jumps to your code's start address.  I've never used it, so I may have this
garbled a bit, but hopefully this will point you in the right direction to
find the real answer.


********************************************************************
Olin Lathrop, embedded systems consultant in Littleton Massachusetts
(978) 742-9014, olinspamKILLspamembedinc.com, http://www.embedinc.com

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam.....mitvma.mit.edu


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...