If I used 1 instead of 0 in both cases I got error: variable term used where not expected.
But how to display separate 4 values "x86.r32", "0", "x86.reg", "4", that term eax has inside of self.
disphex (1metadataofarg) - x86.r32-(0metadataofarg),1;extract x86.r32 index
display' - index of ',`arg,' in x86.r32',13,10
disphex1metadataof (1metadataofarg) - x86.reg,1;extract x86.reg index
display' - index of ',`arg,' in x86.reg',13,10
;how extract x86.r32 & x86.reg theyselfs? to make macro polynome independent? now macro expects some of descendants of x86.r32
;in display output index of esi+'a' is wrong - should be just index of esi - how to fix that?
_________________ I don`t like to refer by "you" to one person.
My soul requires acronim "thou" instead.
This is probably still not good enough - when an element does not have a metadata it is shown simply as "". As elements by themselves do not have any intrinsic meaning to the assembler, you need to somehow distinguish them yourself, this obviously would depend on what kind of elements yo expect to encounter:
Joined: 24 Mar 2012
Location: Russian Federation, Sochi
Perfect - I tested on polynomes other than general registers too.
One more question polynome element base can be send to display in anyway?
I mean value of (buffer element %) extracted itself and displayed?
Joined: 16 Jun 2003
Location: Kraków, Poland
The variable defined by ELEMENT is like a value of a symbol, and you cannot get back to symbol from the value.
a = 2; this defines "a" with known constant value 2
elementb; this defines "b" with unknown (variable) value X
c = a + b; this defines "c" with value "1+X"
; note that "c" no longer has any information about "a" or "b", they were only used to compute the value
Therefore when you analyze polynomial variables, you can only extract their metadata or compare two variables to see if they are the same one.
So all you could do would be to define the elements in such a way that they would contain some information for displaying purposes in their metadata. For example you could catch the definitions of elements with no metadata and insert your own metadata there:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum