Register | Login
Forum Index > Requests and Feedback > multi assignment
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 638
Topics: 103

Location:
Alex, Egypt
[970] multi assignment - posted: 2011-12-06 19:23:22
Hi Colin.

i would like to add this feature to ziron. something like this
Code:
EBX=EAX=GetTickCount();


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

avatar

(send private message)

Posts: 925
Topics: 54

Location:
OverHertz Studio
[971] - posted: 2011-12-06 21:57:31
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

Code:
ebx=eax=GetTickCount();


would of course become:

psuedo:
Code:
buf1 = 'eax=GetTickCount; ebx=eax;';
Ziron_Execute(buf1...


good luck smile

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 638
Topics: 103

Location:
Alex, Egypt
[972] - posted: 2011-12-07 17:31:08

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
Ziron Beta Tester

avatar

(send private message)

Posts: 638
Topics: 103

Location:
Alex, Egypt
[995] - posted: 2011-12-10 16:55:42

Mr Colin. , what is your opinion here?

http://www.freewebs.com/ogremagic/index.htm
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 3 user(s) online. 0 member(s) and 3 guest(s)
Most users ever online was 533, May 5, 2016, 7:19 am.


Statistics:
Threads: 223 | Posts: 1837 | Members: 50 | Active Members: 50
Welcome to our newest member, NobodyAtWork
const Copyright = '2011-2018 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd