oops... one invertion is required. in subc operation C flag being treated as borrow - so subc does subtract source and borrow from destination. so: rla r14 subc r14, r14 inv r14
I forgot that I already made it in casting... ~d On Thursday 30 January 2003 12:51, Dmitry wrote: > super! > > how do you think, will this work: > > rla r14 > subc r14,r14 > > where all regs are the same? > > > ~d > > On Thursday 30 January 2003 12:52, Steve Underwood wrote: > > Dmitry wrote: > > >oops... > > >no... > > > rla r15 ; move MSB to carry > > > clr r14 ; move zero to r14 (carry isn't clobbered) > > > subc #0, r14 ; subtract carry > > > > Can't that be reduced to: > > > > rla r15 > > subc r14,r14 > > > > Regards, > > Steve > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Mspgcc-users mailing list > > Mspgcc-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users -- /******************************************************************** ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ `6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys (_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44 _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia (il),-'' (li),' ((!.-' +7 (812) 3468202, 5585314 ********************************************************************/