Author | Message | ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [936] - posted: 2011-12-01 20:45:59 seems there is some other problem also, i will see if i can find why is there access violation before i upload, will let you know shortly. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [937] - posted: 2011-12-01 22:23:07 OK, this should be all corrected now, the new MOV handler had a few small issues. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [939] - posted: 2011-12-02 16:58:48 ok, i am trying to change this code Code:
to this , so that ziron will understand it Code:
but got that error
and here is the while event function ,part of masm plugin Code:
http://www.freewebs.com/ogremagic/index.htm | ||
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [940] - posted: 2011-12-02 17:02:26 also when remove '}' from this line Code:
so that it is look like that Code:
it compiles ok but did not work correctly e.g it does not print edx = 5 http://www.freewebs.com/ogremagic/index.htm | ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [941] - posted: 2011-12-02 17:05:41 this is because ziron is an assembler not a compiler, you can not pass fragmented code to be assembled, if you need to do this you would need to use raw assembly code... instead of if you will need to write an if processor... e.g. Code:
to Code:
the options are if you are writing a masm compiler plugin then you would need to build a full buffer and then execute it... you could copy the whole contents of the if statement and execute it inside the buffer.. executing: Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [942] - posted: 2011-12-02 17:11:58
i think that it is good solution , but what is the recommended buffer size that will hold the entire while body? http://www.freewebs.com/ogremagic/index.htm | ||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [943] - posted: 2011-12-02 17:21:23 you would need to calculate this in real time and create a dynamic buffer... so you would keep track of your pointer offset... then use another or variable to find the offset of the matching } and then create your buffer to match the size of size=offset2-offset1 then do a strCopy from offset 1 to size Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [944] - posted: 2011-12-02 17:21:49 or the better thing is using growable buffer , and i think the best implementation is using a class , so what do you think. http://www.freewebs.com/ogremagic/index.htm |
Currently Active Users: There are currently 5 user(s) online. 0 member(s) and 5 guest(s) Most users ever online was 1046, January 28, 2022, 2:08 pm. Statistics: Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51 Welcome to our newest member, yecate |