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: 639
Topics: 104

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

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

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: 639
Topics: 104

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: 639
Topics: 104

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

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