multi assignment
Hi Colin.
i would like to add this feature to ziron. something like this
EBX=EAX=GetTickCount();
http://www.freewebs.com/ogremagic/index.htm
A community discussion post from the original code:zIRON forum.
Hi Colin.
i would like to add this feature to ziron. something like this
EBX=EAX=GetTickCount();
http://www.freewebs.com/ogremagic/index.htm
if you plan to add that it may be quite complex and slow, i would not consider that for an official feature because it serves no useful purpose, and can be confusing to read.. however if you want to add it via a plugin it will be possible..
what you will need to do is check for assignments in the plugin, then peek at the token after the assignment, if it is another = then you can execute multiple assignments in order...
so your example
ebx=eax=GetTickCount();
would of course become:
psuedo:
buf1 = 'eax=GetTickCount; ebx=eax;';
Ziron_Execute(buf1...
good luck :)
ok , thanks for explanation.
actually implementing it is so easy, but the point here is checking for double assignment
should be done in event function and not in fileEntry . as i understand from your post.
if so , how can i check line by line in event function , event function was made for a certain keyword that was registered in plugin.
in one word how to detect assignment with plugin?
http://www.freewebs.com/ogremagic/index.htm