gnupic: Thread: How to use idata ?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: How to use idata ?
From: feqin fan ####@####.####
Date: 20 Dec 2012 12:29:52 -0000
Message-Id: <CAOfAq_ozF=zn3YSQmhk8a3KaLVEDbRf8iNjBNj8W0-K6eG6iDw@mail.gmail.com>

Hello,guys.

write this code:

init_data    idata
        db 0x12
        db 0x13, 0x14, 0x15

    code
        movf (init_data + 2), W

    end



this can not work, the data of init_data is in flash, I have look up the
HEX file,there is no code get the data from flash to ram before the value
is used( movf (init_data + 2), W ).

Why there is no code..??

thanks.




-- 
*live long and prosper..*
Subject: Re: How to use idata ?
From: feqin fan ####@####.####
Date: 21 Dec 2012 01:21:46 -0000
Message-Id: <CAOfAq_p-Bgipi5XZ26YGy1EzkJbwKCKZLQeFNz9Vi1YCHJF19A@mail.gmail.com>

Thanks very much.

My Regards.

2012/12/21 Joe Pfeiffer ####@####.####

> Exactly -- you have to move it yourself.  I found a good discussion of
> what's needed at
>
> http://www.microchip.com/forums/m27382.aspx
>
> feqin fan writes:
> >Hello,guys.
> >
> >write this code:
> >
> >init_data    idata
> >        db 0x12
> >        db 0x13, 0x14, 0x15
> >
> >    code
> >        movf (init_data + 2), W
> >
> >    end
> >
> >
> >
> >this can not work, the data of init_data is in flash, I have look up the
> >HEX file,there is no code get the data from flash to ram before the value
> >is used( movf (init_data + 2), W ).
> >
> >Why there is no code..??
> >
> >thanks.
> >
> >
> >
> >
> >--
> >*live long and prosper..*
>
> --
> Joseph J. Pfeiffer, Jr., Ph.D.                 http://pfeifferfamily.net/
> 1440 Tierra del Sol Dr                         575.525.2764 (H)
> Las Cruces, NM 88007                           575.496.3501 (C)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
>


-- 
*live long and prosper..*
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.