Searching \ for '[PIC]: INHX8M format question' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/devices.htm?key=pic
Search entire site for: 'INHX8M format question'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: INHX8M format question'
2002\02\21@200856 by James Ventura

flavicon
face
Hi,

I read from MPASM Assembler Help that all addresses are doubled in INHX8M.  Why
is this necessary?

Thanks for any comments,
James

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\02\21@201548 by Dipperstein, Michael

face picon face
> From: James Ventura [spam_OUTjaventuraTakeThisOuTspamDIGITELONE.COM]
>
> Hi,
>
> I read from MPASM Assembler Help that all addresses are
> doubled in INHX8M.  Why
> is this necessary?
>
> Thanks for any comments,
> James

INHX8M address bytes, mid-range PICs have 14 bit instructions, so it takes two
bytes in a hex file per each PIC instruction.

-Mike

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\02\21@201750 by Tony Nixon

flavicon
picon face
James Ventura wrote:
>
> Hi,
>
> I read from MPASM Assembler Help that all addresses are doubled in INHX8M.  Why
> is this necessary?
>
> Thanks for any comments,
> James

It's counting 16 bytes per line, not 8 words.

--
Best regards

Tony

mICros
http://www.bubblesoftonline.com
.....salesKILLspamspam@spam@bubblesoftonline.com

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\02\21@204412 by Bob Barr

flavicon
face
On Thu, 21 Feb 2002 18:57:22 -0600, James Ventura
<javenturaspamKILLspamDIGITELONE.COM> wrote:

>Hi,
>
>I read from MPASM Assembler Help that all addresses are doubled in INHX8M.  Why
>is this necessary?
>

The INHX8M format, by definition, treats everything as bytes. The
14-bit value of each PIC instruction has to be expressed as two bytes
in the hex file.
The first PIC instruction (PIC address 0) occupies byte addresses 0
and 1, the second (PIC address 1) occupies byte addresses 2 and 3,
etc. This doubles the 'apparent' address of each instruction in the
hex file.

Yes, it's confusing, but it has to be done this way when you use a
byte-oriented file format with wider-than-byte data.


Regards, Bob
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\02\21@204809 by James Ventura

flavicon
face
Hi Michael,

So how do I get the 'real' address?

Regards,
James
----- Original Message -----
From: "Dipperstein, Michael" <.....mdippersKILLspamspam.....HARRIS.COM>
To: <EraseMEPICLISTspam_OUTspamTakeThisOuTMITVMA.MIT.EDU>
Sent: Thursday, February 21, 2002 19:13
Subject: Re: [PIC]: INHX8M format question


{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\02\21@211156 by Tim H.

picon face
James Ventura wrote:
>
> Hi Michael,
>
> So how do I get the 'real' address?

Take the two-byte (word) address and divide by 2, it's that simple!

Regards,

Tim Hamel

>
> Regards,
> James
> {Original Message removed}

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