Re: PIC (Microchip) assembler syntax query
- From: "NewsGroup" <michaelwebb@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 23:58:23 +1000
"bruce varley" <bxvarley@xxxxxxxxxxxxxxx> wrote in message
news:43df5824$1@xxxxxxxxxxxxxxxxxxx
> Hi, Maybe deserves an RTFM response, but I've just spent an hour on this
> with no success. I appear to be trying what the various advice notes
> suggest, but it isn't working.
>
> I'm declaring data memory space (starts at 0x20), up to now have been
doing
> it clunkily as follows:
>
> REG1 EQU 0x20
> REG2 EQU 0x21
>
> But with other platforms one usually declares the locations themselves, as
> in:
>
> ORG 0x20
> REG1 DB 0
> REG2 DB 0
>
>
> Attempting this with Microchip for 12C or 16F series results in a error
> message "Overwriting previous address contents (0020)".
> Would appreciate it if someone could tell me the correct syntax, and what
> that error message means. TIA
>
>
I use cblock
ie.
cblock 0x20
reg1
reg2
endc
If you do rtfm then it should make sense.
hth
Mike
.
- References:
- PIC (Microchip) assembler syntax query
- From: bruce varley
- PIC (Microchip) assembler syntax query
- Prev by Date: Software-only USB driver for AVR
- Next by Date: Philips LPC UART & CAN baud rates with 1 XTAL
- Previous by thread: Re: PIC (Microchip) assembler syntax query
- Next by thread: Re: PIC (Microchip) assembler syntax query
- Index(es):
Relevant Pages
|