From: David B. <da...@we...> - 2003-01-30 10:19:35
|
> yes, I know... > actually I do not care about this. > ~d > In that case, rla r14 ; subc r14,r14 should work perfectly. The non-destructive modified version is: bit r15, #0x8000 subc r14, r14 This will be one word and a couple of cycles longer than the rla r14 version, but it should be useful for doing "short int" to "long int" castings. (I haven't looked closely at any long int code, so I don't know how optimal it is at the moment.) mvh. David > > On Thursday 30 January 2003 12:54, David Brown wrote: > > Is it ok to destroy r15? Because if not, this is going to be a problem... > > -- > /******************************************************************** > ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ > `6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys > (_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44 > _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia > (il),-'' (li),' ((!.-' +7 (812) 3468202, 5585314 > ********************************************************************/ > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com > _______________________________________________ > Mspgcc-users mailing list > Msp...@li... > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > |