Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / News

Ziron 2 - development has resumed

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

Ziron 2 - development has resumed

Ziron 2 has resumed development after the long interruption, at this moment PE32P (64-bit) executable files are supported by the updated linker.dll and there is a very very primitive support for 64-bit instructions.

I hope to get most of the instruction set supporting 64-bit as soon as possible and get the update out!

I will continue to post updates occasionally on development status.

-Colin

Replies

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

Hi Mr Colin.

nice to see you again after a long time.

can you speed the rate of developing ziron.

i still prefer implement reg as a param in procedure and function

for example

procedure dump_mem(pointer mem; DWord len) {
   uses edi;
   edx = mem;	
   ecx = len;
   eax = 0;
   repeat {
	al = [edx];
	print([dword]eax, ' ');
	edx++;
	ecx--;
   } until (ecx == 0);
   print('\r\n');
}

can be like this

procedure dump_mem(edx , ecx) {
   uses edi;
   eax = 0;
   repeat {
	al = [edx];
	print([dword]eax, ' ');
	edx++;
	ecx--;
   } until (ecx == 0);
   print('\r\n');
}

so when calling dump_mem like this

lab:
   mov eax , 10
   ......
   .......etc
   dump_mem(@lab , 20); // @lab is address of memory , 20 is the length  

will be

   edx = @lab;	
   ecx = 20;
   call  dump_mem

it will be fast and optimized method.

what do you think?

also i think there is a bug , try this

program PE32_CUI 'my second application';

#include 'win_def.zir';
#include 'console.zir';


  goto eee
  
fff:
   eax = 10;
   ret 
   
eee:
   call fff 
   print([dword]eax); 
   
wait_key();
ExitProcess(0);

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

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

hi , any body here?

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

Hi Emil,

I will add it to my list, but my list is long.

As for your bug, can you try rent instead of ret, or use return and let me know.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

Hi Colin,

only retn works well , but ret & return did not compile at all.

i think , all of the three instruction must wrok okay.

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

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

Oh...

after compiling the program crash when run it.

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

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

also , how to get the address of label

see that

Lab:
   eax = lab;

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

Hi Emil,

ret and return both take 1 param. (i will look into correcting this)

fff:
   return 10;

try the address operator "@", let me know if this does not work.

e.g. eax = @lab