From: Dmitry <di...@ei...> - 2003-01-30 09:36:21
|
Wow! superb!!! =09mov=09#-1, r14 =09rla=09r15 =09adc=09r14 Thanks! cheers, ~d On Thursday 30 January 2003 12:23, Matthias Weingart wrote: > On Thu, Jan 30, 2003 at 11:41:11AM +0300, Dmitry wrote: > > assume that some value is in r15. > > I need to extract a sign bit of r15 and extend it to whole word and s= ave > > thes in r14. > > > > Can anyone invent a simpler solution? > > I am not familiar with MSP ASM, but maybe you can > > mov #-1, r14 > move msb of r15 to carry flag > add carry to r14 > > no jump needed > > M. > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =3D Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Mspgcc-users mailing list > Msp...@li... > https://lists.sourceforge.net/lists/listinfo/mspgcc-users --=20 /******************************************************************** ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ `6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys=20 (_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44 _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia (il),-'' (li),' ((!.-' +7 (812) 3468202, 5585314 ********************************************************************/ |