Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Proper subtraction
Archive: 3 posts
Is there a simple method someone's figured out for doing subtraction without taking the absolute value of each input? I started a microchip that does a case by case function based on whether each input is negative or not. Like If both are positive, it just does the regular 'direction combiner' subtraction, but if just the minuend is negative, it does addition and reverses the sign. There's two more cases(just the subtrahend is negative/both are negative) plus the two cases where either input is zero. Also, in the fourth case where both are negative and it does regular subtraction then reverses the sign, if the minuend is closer to the origin than the subtrahend, it outputs a negative number when it should be positive, so I have to split that case into two and test whether one is greater than the other. All 7 cases are then stuffed in a giant OR gate. I'm not finished yet, cuz my brother took over and started playing uncharted3, but the microchip got really messy, and I think there's some latency from when the inputs are split into digital positive/negative signals via position sqncr with battery. I'd rather not go this way, but I'll post a picture after my brother gtfo and/or say what I need it for upon request. | 2011-11-26 18:48:00 Author: Unknown User |
Well, the following does signed addition, so you can modify that to do signed subtraction by inverting the second signal (just rewire the output of the orange splitter) http://i600.photobucket.com/albums/tt82/rtm223/adder%20sorter/APhoto_55.jpg More info: http://www.lbpcentral.com/forums/entry.php?2107-Analogue-Logic-2-Sorting-amp-Addition | 2011-11-26 20:23:00 Author: rtm223 Posts: 6497 |
Nice, thank you. I definitely remember reading that part, but it didn't come to mind. Think I forgot about it because I thought the simple adder would have been all I ever needed. | 2011-11-26 22:07:00 Author: Unknown User |
LBPCentral Archive Statistics
Posts: 1077139
Threads: 69970
Members: 9661
Archive-Date: 2019-01-19
Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.