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

.obj file in Windows does not match .hex file #5

Closed
PaperFanz opened this issue Oct 15, 2019 · 1 comment
Closed

.obj file in Windows does not match .hex file #5

PaperFanz opened this issue Oct 15, 2019 · 1 comment

Comments

@PaperFanz
Copy link
Owner

Whenever a 0x0A is written into an object file on windows, a 0x0D is inserted before it, throwing off the entire program.

Hexdumps of the Linux and Windows assemblers:
linux.txt
windows.txt

Diff:
diff.txt

PaperFanz added a commit that referenced this issue Oct 15, 2019
@PaperFanz
Copy link
Owner Author

This issue has been resolved by opening the object file in binary mode for writing, so that no 0x0D is automatically inserted by Windows.

PaperFanz added a commit that referenced this issue Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant