Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Bugs and Fixes

string_sample demo

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

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

string_sample demo

hi

when compiling that demo with ziron ver 1.1.23.0a

it compiled ok , but when run it , got unexpected results

0Press any key to continue  

that is what i got!!!!!!

Emil.

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

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

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.

Colin admin
Posts
928
Threads
49
Location
Bulgaria

seems a bug i need to find - but for now change the console.zir macro "print" to the following:

//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 :)

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

works correctly.

thank you.

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