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

Support RPN operand $62 BIT_INDEX for link-time bit/res/set #13

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

Rangi42
Copy link
Contributor

@Rangi42 Rangi42 commented Feb 12, 2025

Implemented for RGBDS 0.9.2 in gbdev/rgbds#1654

This assembly:

section "test", rom0
bit VALUE, a
res VALUE * 2 + 3, b
set VALUE * VALUE, [hl]

Gives this output for rgbobj -p rpn:

SECTION "test"
    RPN expression:
        Sym#0 Sym#0 * SET<[HL]>
    RPN expression:
        Sym#0 $0002 * $0003 + RES<B>
    RPN expression:
        Sym#0 BIT<A>

And this output for rgbobj -p rpn -r infix:

SECTION "test"
    infix expression:
        SET<[HL]> (Sym#0 * Sym#0)
    infix expression:
        RES<B> (Sym#0 * $0002 + $0003)
    infix expression:
        BIT<A> Sym#0

@Rangi42 Rangi42 requested a review from ISSOtm February 12, 2025 16:26
Copy link
Member

@ISSOtm ISSOtm left a comment

Choose a reason for hiding this comment

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

Thank you!

@ISSOtm ISSOtm merged commit ac53928 into gbdev:master Feb 14, 2025
@Rangi42 Rangi42 deleted the bit-index branch February 15, 2025 00:27
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