Exact match. Not showing close matches.
'[PIC] EE Byte Alignment on PIC18F'
David Duffy (AVD)
I've not had to use the EE on an 18F PIC before and struck a small snag.
It seems the MPASM aligns all "de" directives on even addresses.
So with this:
The result is really 0x01 0x00 0x02 0x00 0x03 0x00 0x04 0x00
as it pads each de section with 0x00 to make it even.
I have worked around this by doing:
de 0x01 0x02
de 0x03 0x04
Is there a better way around this?
David Duffy Audio Visual Devices P/L
Unit 8, 10 Hook St, Capalaba 4157 Australia
Ph: +61 7 38235717 Fax: +61 7 38234717
Our Web Site: http://www.audiovisualdevices.com.au
:: Is there a better way around this?
So for example to make constant bytes for LCD initialisation
LCD_init db 0x38,0x38,0x33,0x01,0x0C,0x00
The 0x00 is the null string.
cdb, btech-online.co.uk on 24/06/2011 colin
Web presence: http://www.btech-online.co.uk Hosted by: http://www.justhost.com.au
More... (looser matching)
- Last day of these posts
- In 2011
, 2012 only
- New search...