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

Include a file with start address and auto-create segment #189

Open
sagacity opened this issue Jun 14, 2021 · 2 comments
Open

Include a file with start address and auto-create segment #189

sagacity opened this issue Jun 14, 2021 · 2 comments
Milestone

Comments

@sagacity
Copy link
Member

This is useful when adding a .sid which already has its load address as part of the file format.

@sagacity sagacity added this to the 0.7.0 milestone Jun 14, 2021
@sagacity
Copy link
Member Author

sagacity commented Jun 18, 2021

It would be nice if binary data can be loaded into a .const, and some kind of Rust-style slice syntax can be used to access the data within.

For instance, to load a .sid file:

.const MY_SID = file("music.sid")

* = MY_SID[0..2]
.data MY_SID[2..]

@sagacity sagacity modified the milestones: 0.7.0, 0.8.0 Jun 18, 2021
@sagacity
Copy link
Member Author

Alternative would be to do something like .struct foo { ...labels and .byte/word/fill... } followed by .file "music.sid" as foo

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