I am trying to understand a very simple assembly to hex conversion.
This is the assembly code for AVR:
Assembly Code
ldi R17, 20
and corresponding
Hex code
:020000020000FC..:0200000014E109..:00000001FF..
Now this is how I add delimiters:
[:] [02] [0000] [02] [0000FC..:0200000014E109..:00000001] [FF]..
Here is how I am interpreting it:
[:]: start of the record
[02]: Size of the code (seems correct as I am having only one LDI instruction)
[0000]: start address
[02]: End address
[0000FC..:0200000014E109..:00000001]: Code (This is not clear to me)
[FF]: Check sum
I would like to know if I have put delimiters at right places.
Secondly why I am getting
..
And finally I am unable to understand how the middle 'code' section equivalent to the LDI instruction I have used.
Any pointers in this regard is appreciated. Thanks
Update
I now understand much better thanks to the discussions below. In code section I can see 14E1 which is equivalent of LDI. But what are the other code in this section ?
[0000FC..:0200000014E109..:00000001]: