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 headerless files #216

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

Elektron72
Copy link
Contributor

@Elektron72 Elektron72 commented Aug 7, 2021

This pull request gives the kernal load routine the ability to load files that do not have a two-byte address header. This is done by interpreting the secondary address as described below:

Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
SA Unused Write Header Address Source

If Address Source is 0, the load address is taken from the X/Y registers. If Address Source is 1, the load address is taken from the file header. Using the first bit in this way allows for partial backwards compatibility with previous versions of the load routine.

If Write Header is 0, the header bytes are not written into memory. However, if Write Header is 1, the header bytes are written into memory.

Closes #211.

@mist64
Copy link
Collaborator

mist64 commented Mar 21, 2022

I love it!

@mist64 mist64 merged commit 24361c9 into commanderx16:master Mar 21, 2022
@irmen
Copy link
Contributor

irmen commented Mar 21, 2022

Yay!!

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.

Feature Request: Loading headerless files
3 participants