gnupic: Re: [gnupic] gpasm hex files, compatibility with odyssey
Subject:
Re: [gnupic] gpasm hex files, compatibility with odyssey
From:
Don Wooton ####@####.####
Date:
29 May 2007 21:14:52 +0100
Message-Id: <20070529201424.GC26772@snuggle.org>
Your file HelloWorld.hex contains one section (no config!!)
section 1/1
0x0000 - 0x0016, length 0x0017, 23 words
0000 280f 30ff 008c 0000 0b8c 2803 0008 008e |.(.0.......(....|
0008 30ff 008d 2001 0b8d 280a 080e 0008 3000 |.0... ...(.....0|
0010 0065 0066 30ff 0086 2007 0986 2814 |e.f..0... ...(|
The code looks like this
$ gpdasm -p 16F84 HelloWorld.hex
000000: 280f goto 0xf
000001: 30ff movlw 0xff
000002: 008c movwf 0xc
000003: 0000 nop
000004: 0b8c decfsz 0xc, f
000005: 2803 goto 0x3
000006: 0008 return
000007: 008e movwf 0xe
000008: 30ff movlw 0xff
000009: 008d movwf 0xd
00000a: 2001 call 0x1
00000b: 0b8d decfsz 0xd, f
00000c: 280a goto 0xa
00000d: 080e movf 0xe, w
00000e: 0008 return
00000f: 3000 movlw 0
000010: 0065 tris 0x65
000011: 0066 tris 0x66
000012: 30ff movlw 0xff
000013: 0086 movwf 0x6
000014: 2007 call 0x7
000015: 0986 comf 0x6, f
000016: 2814 goto 0x14
Your file tim.hex indicates an erased pic
section 1/4
0x0000 - 0x03ff, length 0x0400, 1024 words
0000 3fff 3fff 3fff 3fff 3fff 3fff 3fff 3fff |.?.?.?.?.?.?.?.?|
*
07f8
section 2/4
0x2000 - 0x2003, length 0x0004, 4 words
2000 3fff 3fff 3fff 3fff |.?.?.?.?|
section 3/4
0x2007 - 0x2007, length 0x0001, 1 words
2007 3fff |.?|
section 4/4
0x2100 - 0x213f, length 0x0040, 64 words
2100 00ff 00ff 00ff 00ff 00ff 00ff 00ff 00ff |................|
*
2178