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

Problems with multi-segment OMF #39

Open
fadden opened this issue Jul 5, 2020 · 0 comments
Open

Problems with multi-segment OMF #39

fadden opened this issue Jul 5, 2020 · 0 comments

Comments

@fadden
Copy link

fadden commented Jul 5, 2020

This is all w.r.t Merlin 32 v1.0. Version 1.1.1 fails with an error on the first blank line. v1.1.9 from lroathe's fork seems to have similar behavior to v1.0.

(1) According to the documentation, when creating a multi-segment OMF file you are allowed to specify an ORG value in the link file. In practice this is rejected by v1.0. This should be setting the ORG field in the OMF segment header.

(2) The DS directive sounds like it should be setting the RESSPC field in the header, but doesn't appear to be.

(3) It's a little strange to require ProDOS filename syntax for the DSK directive.

(4) The docs repeatedly claim the default value for KND is $1100, which would be weird (you rarely want BankRel set). Fortunately the actual default value seems to be $1000 (code + NoSpecial).

(5) The docs for SNA are incorrect. If the directive is omitted, the segment name is left blank. (This is the desired behavior.)

(6) The existence of the LNA directive is somewhat dubious. As noted in the GS/OS reference, "This field is unused in a load segment."

(7) 4-byte ADRL generates a 3-byte relocation record (same as ADR). [ Update: code compiled with Orca/M does the same thing for DC A4'label', so this appears to be the correct/expected behavior. ]

(8) Docs say BSZ sets BANKSIZE, but: "unknown directive BSZ". The BANKSIZE value always seems to be set to $010000, even for data segments.

(9) "ALI Page" sets the ALIGN field to $0001, "ALI Bank" sets it to $0002. Should be 0, $100, or $10000.

Test project: Source.zip

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