On Tue, 9 Sep 1997, Herbert Graf wrote: > I am planning to build the PC Parallel port programmer in I believe > application note an589 from microchip, the problem is it only includes > routines for programming the pic, not decoding the hex file. This is not > much of a problem, I can program that myself, the problem is some > incongruities between the asm > file and the lst file produced by the MPASM program, here is an example: > > 0000 00068 ORG 0 > 0000 2850 00069 GOTO Start > 0050 00075 ORG H'50' > 00076 > 0050 00077 Start > 0050 30FF 00078 MOVLW 255 ; > the .hex file (i've put spaces in to make sense of it) > > :02 0000 00 5028 86 > :10 00A0 00 FF30 A000 0130 A100 0730 A200 5A20 A20B AF > No if you look, according to the lst file the address of start is 0050, > however the address of start is 00A0. Am I missing something? If you look at The assembler makes 2 bytes of data for each instruction. So the first instruction is saved at hex record 0, the second instruction is saved at hex record 2, the third instruction at hex record 4, ..., the 80th (= H'50") instruction at hex record 160 (= H'A0'). Simple after you figure it out. Dave Reinagel