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

First declared instruction without parameter isn't recognized when using directive in #ruledef #56

Closed
ClementNerma opened this issue Nov 9, 2020 · 1 comment

Comments

@ClementNerma
Copy link

ClementNerma commented Nov 9, 2020

Hi!

I have another weird bug to report: when I declare instructions without parameters (and sometimes even with), the said instruction isn't recognized. For instance:

#bits 8

#ruledef
{
    #labelalign 4

    ex   => 0x00
    cpy  => 0x01
}

main:
	ex

Doesn't compile. But if I just invert the declaration of ex and cpy:

#bits 8

#ruledef
{
#labelalign 4

cpy  => 0x01
ex   => 0x00

}

main:
ex

Now it compiles perfectly.

Everything works fine if I remove the #labelalign, so I guess it's the culprit, but I don't understand why. Also, I can put anything instead of #labelalign such as #blabla, this gives the same result - the #blabla is not recognized as invalid.

I think it may be closely related to #55, so feel free to close this issue if it is.

@ClementNerma ClementNerma changed the title First declared instruction without parameter isn't recognized First declared instruction without parameter isn't recognized when using #labelalign Nov 9, 2020
@ClementNerma ClementNerma changed the title First declared instruction without parameter isn't recognized when using #labelalign First declared instruction without parameter isn't recognized when using directive in #ruledef Nov 9, 2020
@ClementNerma
Copy link
Author

ClementNerma commented Nov 21, 2020

Closing this issue in favor of #55

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