Open phillipeaton opened 1 year ago
Consider this 6502 source code created by dasmfw
NUMBER_OF_BYTES_TO_FILL comes from a label (just like UDG_RAM a couple of lines later)
NUMBER_OF_BYTES_TO_FILL
UDG_RAM
Unlike UDG_RAM, NUMBER_OF_BYTES_TO_FILL is not an address, it's just a quantity, but anyway, it appears in the created source code
However, if I swap to using a deflabel
deflabel
then I still get the same equ created in the source code (now in the Used Definitions list)
equ
but it doesn't get used in the code, I only see the raw number instead:
I'm not sure if this is a bug or correct behaviour as designed, but either way, it wasn't what I was expecting.
Consider this 6502 source code created by dasmfw![image](https://user-images.githubusercontent.com/44277038/222581846-b1997c02-c7f7-420e-bd1b-2a0faaf24d36.png)
NUMBER_OF_BYTES_TO_FILL
comes from a label (just likeUDG_RAM
a couple of lines later)Unlike![image](https://user-images.githubusercontent.com/44277038/222583449-1fe4783d-080b-482e-8c3b-fea40a57198a.png)
UDG_RAM
,NUMBER_OF_BYTES_TO_FILL
is not an address, it's just a quantity, but anyway, it appears in the created source codeHowever, if I swap to using a![image](https://user-images.githubusercontent.com/44277038/222584923-19bbb967-9aef-4c49-a7ca-bba1822e00e7.png)
deflabel
then I still get the same![image](https://user-images.githubusercontent.com/44277038/222586772-c7ceb64b-133b-4c7a-a683-c118e6c6c87f.png)
equ
created in the source code (now in the Used Definitions list)but it doesn't get used in the code, I only see the raw number instead:![image](https://user-images.githubusercontent.com/44277038/222584138-210bb9ce-850a-43b5-94e8-445304d17182.png)
I'm not sure if this is a bug or correct behaviour as designed, but either way, it wasn't what I was expecting.