Hi guys, I have a (perhaps very obvious) question,
I've recently been playing around with programming in assembler for MSX1, and I'm struggling to understand the way memory works when you load your program as a ROM. For example, if in my assembler program, I define some memory values like this:
spriteattributes:
db 64,64,0,15
If I try to modify those later with:
ld (spriteattributes),128
The values do not get modified. If I compile my program as a BIN file, and load it with BLOAD"...",R then the values in spriteattributes can be changed fine, but when I compile as a ROM, then this cannot be done. I am assuming that this is because the program is living in ROM, which is non-modifiable. Is this correct? If it is, then if I want to have variables in RAM, then I guess I cannot define then as in the example above, right?

). Is there a "neater" way to add those variables in the program than the way I did it?