So I have a couple problems with variables and constants, and having looked at the templates made by tokumaru it's even worse in my head now. I've always been "declaring" variables simply by naming the RAM offsets like:
These are all in a separate "RAM map" source file which is included in the main source during assembly.
Am I really supposed to use the ;MyVariable0 .dsb 1 declaration instead? Or what is exactly happening in both cases?
How is .base and .org different exactly? I sort of see that .base has greater significance but I'm not entirely sure about the relation between the two.
Are constant declarations done without the $ symbol and that's it?
If MIRRORING = %0001, does that mean I can do stuff like lda #%0000|MIRRORING and then A is loaded with #$01?
Code:
temp_0 = $00
These are all in a separate "RAM map" source file which is included in the main source during assembly.
Am I really supposed to use the ;MyVariable0 .dsb 1 declaration instead? Or what is exactly happening in both cases?
How is .base and .org different exactly? I sort of see that .base has greater significance but I'm not entirely sure about the relation between the two.
Are constant declarations done without the $ symbol and that's it?
If MIRRORING = %0001, does that mean I can do stuff like lda #%0000|MIRRORING and then A is loaded with #$01?