Skip to content

How do arithmetic instructions work in the code? #34

Discussion options

You must be logged in to vote

Hello!

I agree, the backend is quite abstract, arguably a little more than it needs to be, and I'm working to simplify it. That said, addition will work the same way regardless; we implement addition the same way real hardware does, with a series of full adders, or more specifically, the truth table associated with a full adder. The code here is just implementing this truth table while inheriting all the mechanical overhead needed to generate the code.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@williamistGitHub
Comment options

@snoopchallenge
Comment options

Answer selected by williamistGitHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants