DSPIC, null string assigment error

Discuss about beta versions of mikroPascal compiler.
Post Reply
Author
Message
yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

DSPIC, null string assigment error

#1 Post by yo2lio » 25 Dec 2007 14:48

Hi,

Code: Select all

var data1 : string[10];

data1 := ''; // equivalent with data1[0] := 0; 
Take a look in ASM :

Code: Select all

;String_Library.dpas,189 :: 		data1 := '';
$0224	$218000			MOV	#@_data1, W0
$0226	$781F81			PUSH	W1
$0228	$B3C441			MOV.B	#68, W1 >>>>>>>> must be MOV.B	#0, W1 >>>>> or CLR W1
$022A	$785801			MOV.B	W1, [W0++]
$022C	$7800CF			POP	W1
$022E	$B10010			SUB	#1, W0
Same problem in Pascal for AVR.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: DSPIC, null string assigment error

#2 Post by zristic » 28 Dec 2007 08:22

Will be checked/fixed. Thanks.

Post Reply

Return to “mikroPascal Beta testing”