asar icon indicating copy to clipboard operation
asar copied to clipboard

size guesser is different in asar2 which can cause bugs or something

Open trillllian opened this issue 8 months ago • 0 comments
trafficstars

asar2's size guesser considers <: as a bankextract operator and thus 1 byte, and will optimize sizeof(some_struct) to 1 byte if the struct is legible for DP optimization.

so, in the dkc2 disassembly, lda #<:mylabel goes from 16bit -> 8bit, as does lda #sizeof(sprite), and they don't give any warnings in 1.9.

i guess this means we should make some warnings for it but it seems quite annoying

trillllian avatar Mar 10 '25 00:03 trillllian