Arakula / dasmfw

The DisASseMbler FrameWork
GNU General Public License v2.0
13 stars 4 forks source link

Unexpected Behaviour: EQU name not being applied when created with deflabel #21

Open phillipeaton opened 1 year ago

phillipeaton commented 1 year ago

Consider this 6502 source code created by dasmfw image

NUMBER_OF_BYTES_TO_FILL comes from a label (just like UDG_RAM a couple of lines later) image

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 image

However, if I swap to using a deflabel image

then I still get the same equ created in the source code (now in the Used Definitions list) image

but it doesn't get used in the code, I only see the raw number instead: image

I'm not sure if this is a bug or correct behaviour as designed, but either way, it wasn't what I was expecting.