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

Add support for building SDCC compatible relocatable files #13

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

Konamiman
Copy link
Owner

@Konamiman Konamiman commented Jul 31, 2024

This pull request implements support for producing relocatable files conforming to the relocatable file format generated by SDAS and SDLD, these are respectively the assembler and the linker used by SDCC. This allows the usage of Nestor80 for creating relocatable files that can be passed to SDCC as additional linkable code when compiling C code.

  • A new AREA instruction is added, to be used when producing SDCC relocatable files; it takes the place of ASEG, CSEG, DSEG and COMMON.
  • A new sdcc value is added to the --build-type argument.
  • SDCC relocatable format will be selected in automatic build type mode when an AREA statement is found before any instruction that produces output (in the same was as how an ORG statement selects absolute build mode).
  • The --end-of-line argument is taken in account when producing SDCC relocatable files (which are actually text files).

See the updated documentation for more details.

@Konamiman Konamiman added this to the v1.3 milestone Jul 31, 2024
@Konamiman Konamiman self-assigned this Jul 31, 2024
- XL3 format specified used, same as SDASZ80.
- New AREA instruction.
- New "sdcc" value for the --build-type argument.
- Change in build type autodetection: if AREA is found before
  any other effective instruction, build type is SDCC.
- --end-of-line argument is used for the produced files.
@Konamiman Konamiman marked this pull request as ready for review July 31, 2024 05:57
@Konamiman Konamiman merged commit 4df536f into master Jul 31, 2024
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

Successfully merging this pull request may close these issues.

1 participant