Ziron Compiler 1.1.27.6
Copyright (C) 2011. OverHertz Ltd. All rights reserved.
--------------------------------------------
11/7/2011 8:56:35 PM
--------------------------------------------
PlugSys: Emit plugin has loaded!
PlugSys: Mov plugin has loaded!
--------------------------------------------
[1,14]: Expected hexadecimal or - or number or register or [expression] or procedure address or constant string or variable or local variable or local parameter or constant but found valu in [plugin buffer]
Code:
mov eax, valu
ok i've fixed 1 other bug, but this still will not solve your problem because what you are trying to do is impossible.. if you return true the assembler will move onto the next keyword from mov which is eax
function event_mov() {
uses edi;
char buf[2048];
Dword Len;
//assembler state: on "mov"
len = Ziron_ExtractLine(@buf, 2048);
Ziron_ShowMessage(@buf);
eax = Ziron_Execute(@buf,Len);
if (eax == false) {
Ziron_FatalError('Error plugin');
return true;
}
//returning true, which means this keyword and its parameters have been handled, we move onto next keyword
return true;
//assembler will move to eax from the line "mov eax, 10"
}
now if you return false, this will work but it means each mov will have been executed twice, once by your plugin from Ziron_Execute and once by the assembler.