Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20587

BASCOM-AVR : problem with $bigstring and instr() : NEWTOPIC

$
0
0
hi everyone i have a string variable with more than 500 byte data on it and i have to pull out my desired character from it. the problem is that the "INSTR()" and "MID()" does not work properly with "$BIGSTRINGS" in bascom 2.0.7.6 based on bellow link,there is a workaround for solving this problem: [url]http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=10993&postdays=0&postorder=asc&highlight=instr&start=15[/url] [quote:03fb6061c0="albertsm"]i looked up the history. you can do the same : in register.mcselec.com under 'bugs/enhancements' you can find reported bugs. and new features. - when using instr() with $bigstrings, and with the optional start value specified (instr(start,string,search)) register R25 was not set. as a workaround you can add this before the instr() call : !clr r25. since you use a start offset, you can do two things : use the workaround - or remove the start since you specify 1 which is the default.[/quote:03fb6061c0] but i don't know where i must put "!clr r25 " command. :cry: Everybodies help is appreciated [b:03fb6061c0][color=red:03fb6061c0](BASCOM-AVR version : 2.0.7.6 )[/b:03fb6061c0][/color:03fb6061c0]

Viewing all articles
Browse latest Browse all 20587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>