So, something that would help speed up workflow immensely - is there any way to make some sort of declaration of script to include or file to incbin in a variable way?
I fully get that ASM is NOT a high level language. But I'm curious. It has functions like .include. Could the target of that .include be variable, somehow? Let's say I had moveScript1 and moveScript2. Is there any way to define which to include in a variable way? In know that a constant expects a numerical value, but something like that...(I know this isn't directly possible, but conceptually)
MOVE_SCRIPT = "scripts\MoveScript1.asm" ;; sets a target
.include MOVE_SCRIPT ;; this now does the same as
;; .include "scripts\MoveScript1.asm"
Again, I know this won't work and isn't directly possible the way it is written. Is there any way to achieve this basic idea? I realized how much simpler being able to expose choices like this from the tool would be for the end user of what we're working on! As it is, we have the tool write out actual ASM for these sorts of includes in line, but this would be a really cool shortcut!
Thoughts?
I fully get that ASM is NOT a high level language. But I'm curious. It has functions like .include. Could the target of that .include be variable, somehow? Let's say I had moveScript1 and moveScript2. Is there any way to define which to include in a variable way? In know that a constant expects a numerical value, but something like that...(I know this isn't directly possible, but conceptually)
Code:
MOVE_SCRIPT = "scripts\MoveScript1.asm" ;; sets a target
.include MOVE_SCRIPT ;; this now does the same as
;; .include "scripts\MoveScript1.asm"
Again, I know this won't work and isn't directly possible the way it is written. Is there any way to achieve this basic idea? I realized how much simpler being able to expose choices like this from the tool would be for the end user of what we're working on! As it is, we have the tool write out actual ASM for these sorts of includes in line, but this would be a really cool shortcut!
Thoughts?