Hey all - I know some of the answers will be "use this other assembler"...so we'll skip those for a moment.
Recently I was inquiring about getting specific strings, and was shown the EQU opcode. It works like a charm for the purpose I needed.
To extend the question, though, does anyone know of the proper syntax, or if it's even possible, to get a variable value for an EQU? What I mean is something like this (this is not any sort of real code, just to demonstrate the desired result)
SOME_CONSTANT EQU whatever_
SOME_CONSTANT_2 = $00
SOME_CONSTANT_3 EQU _thing
value = #SOME_CONSTANT + SOME_CONSTANT_2 + #SOME_CONSTANT_3
;;; to where value would then be whatever_00_thing
I obviously know THAT won't work. I'd be surprised if this is somehow NOT possible, to get a variable string like this, but I've tried a bunch of things to no avail.
Any advice? It's totally a *want* and not a *need*, but it would make some things cleaner for me
Recently I was inquiring about getting specific strings, and was shown the EQU opcode. It works like a charm for the purpose I needed.
To extend the question, though, does anyone know of the proper syntax, or if it's even possible, to get a variable value for an EQU? What I mean is something like this (this is not any sort of real code, just to demonstrate the desired result)
Code:
SOME_CONSTANT EQU whatever_
SOME_CONSTANT_2 = $00
SOME_CONSTANT_3 EQU _thing
value = #SOME_CONSTANT + SOME_CONSTANT_2 + #SOME_CONSTANT_3
;;; to where value would then be whatever_00_thing
I obviously know THAT won't work. I'd be surprised if this is somehow NOT possible, to get a variable string like this, but I've tried a bunch of things to no avail.
Any advice? It's totally a *want* and not a *need*, but it would make some things cleaner for me