Register | Login
Forum Index > Bugs and Fixes > Unexpected symbol @
Author Message
Pages: 1 2 3
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1550] Unexpected symbol @ - posted: 2015-01-30 12:05:06
Cannot compile:
Code:
program RAW_IMAGE 'test';

#set bits 32;

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

avatar

(send private message)

Posts: 932
Topics: 54

Location:
OverHertz Studio
[1562] - posted: 2015-01-31 00:16:05
I've added this for next release.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1569] - posted: 2015-01-31 12:35:40
Code:
program RAW_IMAGE 'test';

#set bits 32;

byte b1;
eax = [@b1];

Invalid expression
Admin
Site Admin

avatar

(send private message)

Posts: 932
Topics: 54

Location:
OverHertz Studio
[1572] - posted: 2015-01-31 13:45:46
Usually you would not use []

eax = @var;

But I can add this.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1574] - posted: 2015-01-31 13:54:05
Code:
eax = @var;

it not the same that
Code:
eax = [@b1];

In first case into eax loads address of var.
In second case -- value by address @var.
Admin
Site Admin

avatar

(send private message)

Posts: 932
Topics: 54

Location:
OverHertz Studio
[1575] - posted: 2015-01-31 14:43:02
Yes you're right, sorry, I have just woken up.

Code:
eax = b1;

//is the same as

eax = [address of b1];  //value at address


Edit: I have corrected this for next release.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1633] - posted: 2015-02-05 19:16:27
Code:
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.
Admin
Site Admin

avatar

(send private message)

Posts: 932
Topics: 54

Location:
OverHertz Studio
[1646] - posted: 2015-02-07 17:01:04
Thanks, was a small overlook, fixed for next release (hopefully tonight).

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


Quick reply:

Message:



Currently Active Users:
There are currently 1 user(s) online. 0 member(s) and 1 guest(s)
Most users ever online was 999, May 11, 2018, 10:01 am.


Statistics:
Threads: 224 | Posts: 1847 | Members: 50 | Active Members: 50
Welcome to our newest member, NobodyAtWork
const Copyright = '2011-2021 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd