On Sun, 15 Feb 2009, Vaclav Peroutka <
vaclavpe@...> wrote :
>Hello,
>
>I found strange problem. In ASM I have following:
>
>; ; Starting pCode block for absolute Ival
>S_main__EE_prog code 0XF0007B
>_EE_prog:
> DB 0x50, 0x72, 0x6f, 0x67, ... etc...
>
>But in LST (and on HEX as well) I have problem:
>
>f00078 006e dw 0x6e ;unknown opcode
>
> ; ; Starting pCode block for
>absolute Ival
> S_main__EE_prog code 0XF0007B
> _EE_prog:
>f0007a 7250 btg 0x50, 0x1, 0 DB 0x50, 0x72,
>0x6f, 0x67, ... etc ...
>
>I must say that I don't want code of 0x7B to be put onto 0x7A. Is there
>something bad in GPASM or is there a workaround for this problem ?
>
I think you may need to declare your section as packed:
S_main__EE_prog code_pack 0XF0007B
If the section is not packed then on an 18F target the assembler will
word align the output of every source line.
>If I move _EE_prog to 0x7A - I get following message: "error: multiple
>sections using address 0xf0007a"
>
I'm not sure why it would do that, but I suspect it relates to something
you didn't quote.
--
Rob Pearce
http://www.bdt-home.demon.co.ukThe contents of this | Windows NT crashed.
message are purely | I am the Blue Screen of Death.
my opinion. Don't | No one hears your screams.
believe a word. |
---------------------------------------------------------------------
To unsubscribe, e-mail:
gnupic-unsubscribe@...
For additional commands, e-mail:
gnupic-help@...