I'm working on making my program output Intel Hex directly.
Looks like when Spin IDE does this it fills space past the end of the explicit instructions with 0x0000_0011. However there is no reference to "NOP" giving its bit pattern in the ASM manual.
Thanks!
Please confirm NOP = 0x 0000_0011 ?
Moderator: frank
-
- Posts: 338
- Joined: Mon Nov 12, 2012 1:12 pm
- Contact:
I thought it was 0x0000000F which is an OR with all bits 0 so nothing changes.
Frank Thomson
Experimental Noize
Experimental Noize
-
- Posts: 338
- Joined: Mon Nov 12, 2012 1:12 pm
- Contact:
Here's the section of Patch 0's generated hex (from Spin IDE) where it goes from having some instructions to all no-op or whatever.
:04005400400004A4C0
:04005800400002C69C
:04005C00000002E6B8
>>> right here <<<
:04006000000000118B
:040064000000001187
:040068000000001183
:04006C00000000117F
Last byte is the checksum. It really looks like 0x0000_0011 to me.
But then the pattern changes once we hit the transition to data for patch 1.
:0401F80000000011F2
:0401FC0000000011EE
>>> right here <<<
:0402000011000000E9
:0402040011000000E5
:0402080011000000E1
I'm guessing that's actually a bug because it only happens when you generate hex on a single program without the dev board attached, and save the hex.
:04005400400004A4C0
:04005800400002C69C
:04005C00000002E6B8
>>> right here <<<
:04006000000000118B
:040064000000001187
:040068000000001183
:04006C00000000117F
Last byte is the checksum. It really looks like 0x0000_0011 to me.
But then the pattern changes once we hit the transition to data for patch 1.
:0401F80000000011F2
:0401FC0000000011EE
>>> right here <<<
:0402000011000000E9
:0402040011000000E5
:0402080011000000E1
I'm guessing that's actually a bug because it only happens when you generate hex on a single program without the dev board attached, and save the hex.
Last edited by Digital Larry on Sun Jun 14, 2015 3:59 pm, edited 1 time in total.
-
- Posts: 338
- Joined: Mon Nov 12, 2012 1:12 pm
- Contact:
Keith managed the guy doing the assembler so they may have changed it after telling me what it was. SKP 0,0 is fine as a NOP.
Frank Thomson
Experimental Noize
Experimental Noize