Terraspace / UASM

UASM - Macro Assembler
http://www.terraspace.co.uk/uasm.html
Other
220 stars 49 forks source link

General failure with accessing structure member named same as proc #145

Closed vid512 closed 2 years ago

vid512 commented 3 years ago

Following code crashes UASM 2.51. The instruction tries to get type of structure member, a member which has same name as prototype of PROC.

.code

myproc proto

mov [(type something.myproc) ptr [rax]], rax

a db 0

myproc PROC
  RET
myproc ENDP

end

I had many other variants of same problem, this is just the minimal version I could reproduce. I assume it's some kind of wrong handling in 'type' operator of structure member named same as PROC prototype.

vid512 commented 3 years ago

I have just realized this is most likely only a simpler variant of previously reported problem: https://github.com/Terraspace/UASM/issues/132

john-terraspace commented 2 years ago

Couldn't reproduce this issue using this test-case:

.x64 .model flat

something STRUCT myproc dq ? something ENDS

.code

myproc proto

mov [(type something.myproc) ptr [rax]], rax

a db 0

myproc PROC RET myproc ENDP

end

john-terraspace commented 2 years ago

Moving this to #132 and closing.