Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Requests and Feedback

multi assignment

A community discussion post from the original code:zIRON forum.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

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

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

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 :)

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

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

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

Mr Colin. , what is your opinion here?

http://www.freewebs.com/ogremagic/index.htm