Info about the adder program.

master
Mikael Nordin 6 years ago committed by GitHub
parent dce2fc82dd
commit cfa6d17771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,4 +65,5 @@ For instance, the one card busy beaver would look like this:
1:1,1,0,1,0,0
````
## The adder program
The adder program on the cards in the repository will add two binary numbers in registry position -1 to -7 and 1 to 7 and place the result in registry position 1 to 8. It does this by decrementing the number in -1 to -7 by one and incrementing the number in 1 to 7 untill the number in the negative part of the registry is zero. The hard code values for the two numbers is 8 and 4 but can be changed to any 7 bit number.

Loading…
Cancel
Save