Register | Login
Forum Index > Requests and Feedback > get entire line
Author Message
Pages: 1 2 3 4 5 6 7 8
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[430] - posted: 2011-11-07 19:43:55

ok workes well.

btw does Ziron_ExtractLine changes the Ziron just like Ziron_GetNextToken or like Ziron_PeekNextToken

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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[431] - posted: 2011-11-07 19:48:41
no, no states are changed.

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: 639
Topics: 104

Location:
Alex, Egypt
[432] - posted: 2011-11-07 20:09:26

this give error
Code:
function event_mov() {
    uses edi;
    char buf[2048];
    Dword Len;
       
    len = Ziron_ExtractLine(@buf, 2048);
    eax = Ziron_Execute(@buf,Len);
    if (eax == false) {
          Ziron_FatalError('Error plugin');
          return true;
     }       
   return true;
}


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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[433] - posted: 2011-11-07 20:24:05
you need to state the errors you receive when posting about an error, i am unable to always produce the same problem and need to know the error from the compiler.

check in ziron.exe directory there is a log.txt which at bottom contains the output.

note that such code would also cause the assembler to become stuck in a loop, since it will keep processing the same line over and over.

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: 639
Topics: 104

Location:
Alex, Egypt
[434] - posted: 2011-11-07 20:36:27
ok consider my last event_mov ,

when compiling this
Code:
program WIN32CUI 'mov plugin test';
#include 'console.zir';

mov eax,10; 
print('eax = ', eax:int, '\r\n');

wait_key(nil);
ExitProcess(0);


i got that

Ziron Compiler 1.1.27.6
Copyright (C) 2011. OverHertz Ltd. All rights reserved.
--------------------------------------------
11/7/2011 8:32:16 PM
--------------------------------------------

PlugSys: Emit plugin has loaded!
PlugSys: Mov plugin has loaded!
PlugSys: mov
PlugSys: eax
PlugSys: ,
PlugSys: value
PlugSys: mov
PlugSys:
PlugSys:
PlugSys:
[1,3]: Unknown Identifier "mo" in [plugin buffer]
Code:
mo



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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[435] - posted: 2011-11-07 20:50:56
this is because you are detecting the keyword mov and executing the keyword mov so you are in a loop, i have just made it so keywords are not fired when inside ziron_execute

i have re-updated the package

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: 639
Topics: 104

Location:
Alex, Egypt
[436] - posted: 2011-11-07 20:55:02

is it in this post '2011-11-06 18:37:47'

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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[437] - posted: 2011-11-07 20:58:27
sorry i don't understand - but the alpha package has been updated with the fix for your problem.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1 2 3 4 5 6 7 8
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 6 user(s) online. 0 member(s) and 6 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
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd