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 data.strz directive for zero-terminated strings #6

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

neuschaefer
Copy link

A common pattern in fox32 software is this:

data.str "Some string here" data.8 0

i.e. a zero- or NUL-terminated string. To make such strings easier to write, introduce a new directive data.strz, which adds the zero byte automatically:

data.strz "Some string here"

A common pattern in fox32 software is this:

	data.str "Some string here" data.8 0

i.e. a zero- or NUL-terminated string. To make such strings easier to
write, introduce a new directive data.strz, which adds the zero byte
automatically:

	data.strz "Some string here"
@ry755 ry755 merged commit 7d18f37 into fox32-arch:main Feb 1, 2023
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.

2 participants