Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/overhertz/domains/codeziron.com/public_html/ziron/ziron.db.connector.php on line 13 code:zIRON - Get the latest releases plus source-codes and tutorials - Simplifed Assembly Programming Language.
Register | Login
Forum Index > News > Ziron 2 - development has resumed
Author Message
Pages: 1 2
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 638
Topics: 103

Location:
Alex, Egypt
[1418] - posted: 2014-12-04 21:43:19

Hi Colin,

i think , ret or return may not has a return value , just like my example.

also the @ does not compile , the compiler gave this error

Instruction usage is not supported!
code:
eax = @fff;


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 925
Topics: 54

Location:
OverHertz Studio
[1419] - posted: 2014-12-05 03:32:10
I will try fit these fixes into my schedule over the weekend. I will let you know.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Admin
Site Admin

avatar

(send private message)

Posts: 925
Topics: 54

Location:
OverHertz Studio
[1422] - posted: 2014-12-06 20:31:47
OK I have uploaded the latest beta

Download Here

when calling a label, the label should not call ret (since the internal assembler will try to calculate the locals offset, instead you should use lret (label return)

e.g.

Code:
program PE32_CUI 'test';

#include 'win_def.zir';

goto start;
aaa:
  mov eax, 5
  lret 0;
  
start:
  eax = @aaa;
  call eax

ExitProcess(0);


Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 638
Topics: 103

Location:
Alex, Egypt
[1423] - posted: 2014-12-07 21:24:51

ok , thanks for that updating.

as for beta release i can accept that lret uses to return from subroutine , but actual assemblers using normal ret when return from routine.


http://www.freewebs.com/ogremagic/index.htm
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 638
Topics: 103

Location:
Alex, Egypt
[1424] - posted: 2014-12-07 21:44:37

also , call should use a label directly ,instead of load address in eax then call eax.

thank you for the blugin system.

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 925
Topics: 54

Location:
OverHertz Studio
[1425] - posted: 2014-12-08 01:56:55
Other assemblers do not auto manage stack for functions. And you can call label directly, it was just an example.

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


Quick reply:

Message:



Currently Active Users:
There are currently 2 user(s) online. 0 member(s) and 2 guest(s)
Most users ever online was 533, May 5, 2016, 7:19 am.


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