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: 933
Topics: 55

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: 933
Topics: 55

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: 933
Topics: 55

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: 933
Topics: 55

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 13 user(s) online. 0 member(s) and 13 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