mys struc
_apple dd ?
_grappe dd?
mys ends
assume ebx: ptr mys
mov [ebx._apple],0 <- symbol not found
mov [ebx.mys._apple],0 <-work
Try:
mov [ebx]._apple, 0
ps. just in case you didn't know, for single line 'assume's i personally prefer to do it like this :
(mys PTR [ebx])._apple
This syntax is shorter, and it also does not require an ASSUME statement:
[ebx].mys._apple
also bear in mind after assuming a register is a pointer to a structure you should assume it is 'nothing' again once you're done using it as such with :
assume ebx:nothing
mov [ebx]._apple, 0
work.
thx. :U :clap: :clap: :U
the assume ebx:nothing is important, I got the most annoying/confusing errors 1 time in my 20,000+ line project and I couldn't figure out wat is was. It happened to be I forgot to assume ecx:nothing hehe.
i had a similar bit of fun the prologue/epilogue - lol
those kind of mistakes are hard to find because the instruction-generating code looks good