Hi guys, Is there anyone who can make this code more efficient? I'm running out of code space and wish that I can shink this piece of code further. I'm using this concept 3 times in my program which eats up a lot of space. If anyone can make it flexible it will be GREAT !! Thanks. TSM_Curr2Ptr: lds TSM_Temp, TSM_Data_Curr sts TSM_Data_Ptr, TSM_Temp lds TSM_Temp, TSM_Data_Curr+1 sts TSM_Data_Ptr+1, TSM_Temp lds TSM_Temp, TSM_Data_Curr+2 sts TSM_Data_Ptr+2, TSM_Temp lds TSM_Temp, TSM_Data_Curr+3 sts TSM_Data_Ptr+3, TSM_Temp lds TSM_Temp, TSM_Data_Curr+4 sts TSM_Data_Ptr+4, TSM_Temp ret ; Exit Regards, Andrew David Jones <david.jones@sercel.com.au> wrote: >>> <AVR-Chat@yahoogroups.com> 10/12/2004 4:00:39 am >>> >Then I came across the AVRs. Seemed like they were as good or better >in most cases but both would do the jobs I had in mind. The selling >point, being a hobbiest price of all the tools, both hardware >(STK500) and software (AVR Studio, GCCAVR and CodeVisionAVR) are >better priced. When it came down to it for me the cost of the tools >made the difference. >Anyone that has an STK500 knows that Atmel is probably only >recovering the cost of the thing. But what are you going to do? >Develope things that use AVRs. Where are you going to get the AVRs? This is something that grabs me too initially. I'm a sucker a cheap development tool WITH a C compiler. Although if you want value for money development kits there are better ones around than the AVR. For the professional users though it's not so important, this is why the PICs have a much bigger market share than the AVRs. Price of development tools is usally not the issue, you are swayed by other factors such as professional support, device range, lead times, ease of migration across platforms and footprints, volume pricing, Flash/OTP/Mask migration, what your team have experience with etc. If you are in a big organisation it's often not an easy sell to convince the technology director you want to go with a GNU solution for instance. I don't blame them either, if you really get in the shit with a GNU solution you could be in big trouble. But if you pay the $$$$ for a professional solution you know you'll get the support. >Of all the personal computer manufactures of the 70's as far as I >know only Apple is still around. If they are around they are making >IBM PC compatable computers. What ever happen to Tandy? Screwed their >customers with almost compatable IBM PCs. Nope. They simply fell victim to the asian clone market like every other company. Apple are still around because a) they got into other markets, and b) they had a monopoly on an almost viable alternative to the PC, and the niche market it had (DTP mostly). Dave :) ********************** The information contained in this email is intended for the named recipient(s) only, it may also be privileged and confidential. If you are not an intended recipient you must not copy, distribute or take any action in reliance upon it. No warranties or assurances are made in relation to the safety and content of this email and any attachments. No liability is accepted for any consequences arising from it. Any comments contained within this email may or may not be solely the senders and not those of Sercel Australia Pty Ltd. Therefore Sercel Australia Pty Ltd will accept no responsibility or liability for any such comments and/or attachments. ********************** Yahoo! Groups Sponsor Get unlimited calls to U.S./Canada --------------------------------- Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/AVR-Chat/ To unsubscribe from this group, send an email to: AVR-Chat-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- Do you Yahoo!? Jazz up your holiday email with celebrity designs. Learn more.
Message
[AVR-Chat] More efficient and space saving code
2004-12-10 by Andrew Lim
Attachments
- No local attachments were found for this message.