Skip to content

IntelHex Format Output Broken by Enhancemnt #206 #210

@cjmonica

Description

@cjmonica

The Intelhex output format was broken in version v0.13.7 apparently by enhancement #206. Intelhex output is stripping leading and trailing binary zeros (0x00) from each 32 byte Intelhex output record. The stripped data is valid program code. Issue is show below.

Example code:

#ruledef
{
nop => 0x00
ldi sp, {value: i8} => 0x08 @ value
}
nop
ldi sp, 0xff
nop

Annotated Output:

outp | addr | data (base 16)

0:0 | 0 | 00 ; nop
1:0 | 1 | 08 ff ; ldi sp, 0xff
3:0 | 3 | 00 ; nop

Intelhex Output:

:0200010008FFF6
:00000001FF

In the Intelhex output above is starting at address 0x1. The NOP's at addresses 0x0 and 0x3 are removed from the binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions