aboutsummaryrefslogtreecommitdiff
path: root/include/asm.s
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm.s')
-rw-r--r--include/asm.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm.s b/include/asm.s
index 67b195c..09229f9 100644
--- a/include/asm.s
+++ b/include/asm.s
@@ -20,3 +20,13 @@
.macro JAL ADDR
jmp ADDR
.endmacro
+
+;; Pseudo-instruction from 'nasm' that is not available for 'ca65'. An empty
+;; implementation is actually quite accurate, as it's just a way for 'nasm' to
+;; perform extra checks when programmers want to explicitly make the code fall
+;; through.
+.ifndef __NASM__
+ .macro __fallthrough__ arg
+ ;; Nothing to do.
+ .endmacro
+.endif