Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelHex Format Output Broken by Enhancemnt #206 #210

Open
cjmonica opened this issue Nov 28, 2024 · 0 comments
Open

IntelHex Format Output Broken by Enhancemnt #206 #210

cjmonica opened this issue Nov 28, 2024 · 0 comments
Labels

Comments

@cjmonica
Copy link

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.

@hlorenzi hlorenzi added the bug label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants