Unexpected symbol @
Cannot compile:
program RAW_IMAGE 'test';
#set bits 32;
dword d1;
eax = [eax + @d1];
lea eax, [eax + @d1];
A community discussion post from the original code:zIRON forum.
Cannot compile:
program RAW_IMAGE 'test';
#set bits 32;
dword d1;
eax = [eax + @d1];
lea eax, [eax + @d1];
I've added this for next release.
eax = @var;
it not the same that
eax = [@b1];
In first case into eax loads address of var.
In second case -- value by address @var.
Yes you're right, sorry, I have just woken up.
eax = b1;
//is the same as
eax = [address of b1]; //value at address
Edit: I have corrected this for next release.
program RAW_IMAGE 'test';
#set bits 32;
byte b1;
word w1;
dword d1;
mov byte[@b1], al;
mov word[@b1], ax;
mov dword[@b1], eax;
**** Ziron Assembler 2.0.0.20 Copyright (c) 2011-2015, OverHertz Ltd **** PlugSys: Ziron Linker plugin was loaded! PlugSys: Emit plugin was loaded! EAccessViolation: Access violation at address 004BDD03 in module 'Ziron.exe'. Re ad of address 0000001C Press the [enter] key to exit.
May be there is unnecessary type(byte, word, dword) but anyway it should be correctly processed.
Thanks, was a small overlook, fixed for next release (hopefully tonight).