Register | Login
Forum Index > Requests and Feedback > ZirToken
Author Message
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[413] - posted: 2011-11-06 19:47:53
it is looking very good, once you are done with your plugin to an offical finished release, maybe i will create a section of the website for finished plugin downloads - maybe i can replace the Source menu section that i never got round to doing anything with smile

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
[417] - posted: 2011-11-07 10:19:52

ok , this time the plugin make Ziron crashed after finishing compilation.

the source code can be downloaded from previous link.


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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[422] - posted: 2011-11-07 16:19:08
What have you added this last version?

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
[423] - posted: 2011-11-07 16:32:58
your strlen seems to have a problem..

Code:
//add some variable type
const MyType = 'type Integer = Int32; type String = char; type Uchar = char; type Schar = sbyte; type USHORT = word;';
Ziron_Execute(MyType, strLen(MyType)); //H_strlen(MyType))


This works.

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
[424] - posted: 2011-11-07 16:37:22
your strlen function does not protect ebx.

registers eax, ecx and edx are trashable, all other must be protected in the windows platform.

Code:
function H_strlen(char* str) {
  uses ebx;
  
  Eax = nil;
  Ebx = str;
  while(char[Ebx] != 0) {
    Ebx++;
    Eax++;
  }
}


a better alternative would be:

Code:
function H_strlen(char* str) {
  Eax = str;
  while(char[eax] != 0) {
    Eax++;
  }
  sub eax, str
}


I have just extended the sizeof internal macro to support const strings

Code:
Ziron_Execute(MyType, sizeof MyType);


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
[428] - posted: 2011-11-07 19:32:57

ok , update my H_strlen.

works fine.

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

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[495] - posted: 2011-11-09 09:57:05

Hi

how can i allow plugin start handling assignment , for example , i want basic plugIn
to understand this lines
Code:
Dim buf$ * 100  // allocat 100 char in buf
buf = 'welocm here'   // 
print('assignment test = ', @buf , '\r\n');


BTW ,assignment in basic plugin will call H_strcpy function.

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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[497] - posted: 2011-11-09 13:37:28
at some point i plan to add string assignment. Also i plan to add unnamed functions for plug-ins which would be useful for your type of plugin, i will let you know asap

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 7 user(s) online. 0 member(s) and 7 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