[video member=miotatsu stream_platform=twitch project=riscy title="Ripple Carry Adders & Two's Complement" vod_platform=youtube id=BObABjzvVPw annotator=Miblo] [0:07][Set the stage for the day, looking at two's complement and sign extension] [0:41]["It seems like, as you get older, the years start to go by like weeks"][quote 14] [1:01][Recommend Code by Charles Petzold[ref title="Code: The Hidden Language of Computer Hardware and Software" author="Charles Petzold" publisher="Microsoft Press" isbn=0-7356-0505-X url=http://www.charlespetzold.com/code/]] [5:03][Using an electromagnet with a telegraph to communicate in Morse code] [9:56][Adder circuit][:blackboard] [18:02][:Research logic gates[ref site=Wikipedia page="Logic gate" url=https://en.wikipedia.org/wiki/Logic_gate]] [19:27][XOR][:blackboard] [25:38][Redraw the tables][:blackboard] [28:01][What an XOR gate will do when the carry is off][:blackboard] [33:27][Propagating the carry through our circuit][:blackboard] [36:58][Consult Wikipedia for a ripple carry adder[ref site=Wikipedia page="Adder (electronics)" url=https://en.wikipedia.org/wiki/Adder_(electronics)]] [38:58][This circuit does 1 bit of the adder computation][:blackboard] [41:25][Subtraction circuit][:blackboard] [44:46][Agreeing on an encoding in order to communicate useful information] [46:33]["You can quote whatever you like, @Miblo"][quote 15] [48:06][Start with looking at ones' complement[ref site=Wikipedia page="Ones' complement" url=https://en.wikipedia.org/wiki/Ones'_complement]][:research] [54:28][Go to two's complement[ref site=Wikipedia page="Two's complement" url=https://en.wikipedia.org/wiki/Two's_complement]][:research] [59:12][Using both ones' complement and two's complement to enable our circuit to perform subtraction][:blackboard] [1:04:43][GCC's "Statements and Declarations in Expressions" Extension[ref site="GCC, the GNU Compiler Collection" page="Statements and Declarations in Expressions" url=https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html]] [1:06:12][That's all for now] [/video]