For the sake of simplicity, we'll consider that this machine only handles unsigned numbers.
For the addition and subtraction, this does not matter because 2s-complement representation is insensitive to the actual circuit. It's then just a matter of how we interpret the Most Significant Bit, and display the input and output numbers.
Considering that the #DYPLED is not yet ready and I'll be using TIL311s in hexadecimal, it just makes sense to say the numbers are positive.
For division and multiplication, the hardware must know the signedness of the operands. Things can get pretty tricky and division has weird rounding behaviours. These considerations are better left to "advanced" machinery building projects...
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Possible alternative: "the machine works in two's complement (so there's a unique zero, and a negative number is easy to spot) but multiplication and division is unsigned."
Are you sure? yes | no
Yes but "think of the children" ;-)
Negative numbers will not be talked about...
Are you sure? yes | no