Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Bugs and Fixes

Unexpected symbol @

A community discussion post from the original code:zIRON forum.

0CodErr member
Posts
201
Threads
37
Location
Unknown

Unexpected symbol @

Cannot compile:

program RAW_IMAGE 'test';

#set bits 32;

dword d1;
eax = [eax + @d1];
lea eax, [eax + @d1];

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

I've added this for next release.

0CodErr member
Posts
201
Threads
37
Location
Unknown
program RAW_IMAGE 'test';

#set bits 32;

byte b1;
eax = [@b1];
Invalid expression
Colin admin
Posts
928
Threads
49
Location
Bulgaria

Usually you would not use []

eax = @var;

But I can add this.

0CodErr member
Posts
201
Threads
37
Location
Unknown
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.

Colin admin
Posts
928
Threads
49
Location
Bulgaria

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.

0CodErr member
Posts
201
Threads
37
Location
Unknown
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.

Colin admin
Posts
928
Threads
49
Location
Bulgaria

Thanks, was a small overlook, fixed for next release (hopefully tonight).