Register | Login
Forum Index > Bugs and Fixes > string_sample demo
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[146] string_sample demo - posted: 2011-10-26 20:31:52
hi

when compiling that demo with ziron ver 1.1.23.0a

it compiled ok , but when run it , got unexpected results
Code:
0Press any key to continue  


that is what i got!!!!!!

Emil.

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

avatar

(send private message)

Posts: 932
Topics: 54

Location:
OverHertz Studio
[149] - posted: 2011-10-26 23:31:10
by the looks of it i have broke some of the library functions when updating them, first thing tomorrow morning i will fix them and post the fixes. most likely strUpper and lower are broke.

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: 932
Topics: 54

Location:
OverHertz Studio
[151] - posted: 2011-10-27 17:18:29
seems a bug i need to find - but for now change the console.zir macro "print" to the following:

Code:
//under construction still :)
inline procedure print(;) {
  $temp = 0;

  $repeat $argc:  
    pushAP();
            
    $if deftype($arg[$temp]) == 'int':
      writenumber($arg[$temp]);
    $elseif deftype($arg[$temp]) == 'string':      
      eax = strLen($arg[$temp]);
      WriteConsoleA(hStdOut, $arg[$temp], eax, @nCharsWritten, 0);
    $elseif deftype($arg[$temp]) == 'register':
      writenumber($arg[$temp]);
    $elseif deftype($arg[$temp]) == 'segment':
      writenumber($arg[$temp]);  
    $else
      $raise 'Unknown default type';
    $end
    
    $temp++;

    popAP();
  $end
}


that should solve it until i fix this minor issue 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
[153] - posted: 2011-10-27 18:45:44

works correctly.

thank you.

http://www.freewebs.com/ogremagic/index.htm
Pages: 1
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 999, May 11, 2018, 10:01 am.


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