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

Additional fixes for FDISK after the migration to SDCC 4.2 #118

Merged
merged 1 commit into from Apr 12, 2023

Conversation

Konamiman
Copy link
Owner

#115 converted the C sources to the new calling convention introduced in SDCC 4.2 (passing arguments to functions in registers instead of in the stack) and #117 implemented additional fixes, but there were still some bugs that prevented FDISK from working properly:

  • Assembler functions return 16 bit values in DE in SDCC 4.2, not in HL as in previous versions; so CallFunctionInExtraBank needed to be adjusted.
  • Bank 5 code and bank 6 code were sharing the same RAM and this was causing issues, makefile needed changes to use different RAM areas.

This pull request fixes these issues and as a bonus, chmod +x is applied to to the mknexrom tool.

- Assembler functions now return values iin DE, not HL;
  so CallFunctionInExtraBank is modified accordingly.
- Bank 5 code and bank 6 code were sharing the same RAM and this
  was causing issues, now they use different RAM areas.
- Apply "chmod +x" to the mknexrom tool.
@Konamiman Konamiman self-assigned this Apr 12, 2023
@Konamiman Konamiman merged commit 181d3e0 into v2.1 Apr 12, 2023
1 check passed
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.

None yet

1 participant