Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 20th December 2004, 11:42 PM   (permalink)
Default subtraction in PIC16F876 ??

when i perform a subtract operation in PIC16F876 ; the answer stored in the register is it in the 2's complement form ? should i transform it to the normal form or is it stored in the normal form that don't need any changes to use it again ??
zika1212 is offline  
Old 21st December 2004, 01:14 AM   (permalink)
Default

If the result is in two's complement if the result is negative.

I.E., in the equation A = A - B , A is in two's complement form if A<B.
__________________
"Having to do with Motion Control"
motion is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 03:52 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker