diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-02-02 23:13:57 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-02-02 23:22:47 +0100 |
| commit | 31dd071e927ab4375db6c408c08ab776e4a5c655 (patch) | |
| tree | 36a2d892bcd3162e8cf2ae875ed834cb50431432 /tests/bad_fallthrough.s | |
| parent | 6ab4d0aa58928bf9a5bc0b60d216e1cebaf9a5a8 (diff) | |
| download | tools.nes-31dd071e927a.tar.gz tools.nes-31dd071e927a.zip | |
Change .fallthrough to __fallthrough__
Implementing it as a control statement has the bad thing that it's
impossible to be compatible with other assemblers such as ca65, as you
cannot create dummy control statements or something like that in
there. Instead of that, we define it with the special underscores which
are still valid for identifiers, and give a "compiler-specific thingie"
flair to it.
This also has the benefit that the parser can be a bit more strict.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'tests/bad_fallthrough.s')
| -rw-r--r-- | tests/bad_fallthrough.s | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/bad_fallthrough.s b/tests/bad_fallthrough.s index ac17ade..80c35c3 100644 --- a/tests/bad_fallthrough.s +++ b/tests/bad_fallthrough.s @@ -8,20 +8,20 @@ .proc foo lda #0 - .fallthrough bar + __fallthrough__ bar .endproc -.fallthrough bar -.fallthrough other +__fallthrough__ bar +__fallthrough__ other lda #0 .proc bar lda #0 - .fallthrough other + __fallthrough__ other .endproc .proc other rts .endproc -.fallthrough other +__fallthrough__ other |
