Skip to content

Wrap labels in quotes in prelude asm#1882

Merged
ethteck merged 1 commit intomainfrom
quote-labels
Mar 23, 2026
Merged

Wrap labels in quotes in prelude asm#1882
ethteck merged 1 commit intomainfrom
quote-labels

Conversation

@mkst
Copy link
Copy Markdown
Collaborator

@mkst mkst commented Mar 23, 2026

I updated ps2 and then used that as a reference for ps1 and psp.

Closes out #1880.

# A label referenced by a jumptable.
.macro jlabel label, visibility=global
\label:
.macro jlabel label, visibility=local
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? This matches the behaviour of ps2.s and splats labels.inc (macro.inc has it as global).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jlabel should only need to be global when you have code and rodata split into separate files and then link them together, which is not the case for decomp.me. Local gives a better diff experience

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks for confirming :)

@ethteck ethteck merged commit 2690974 into main Mar 23, 2026
7 checks passed
@ethteck ethteck deleted the quote-labels branch March 23, 2026 18:19
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.

3 participants