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

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

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 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