ra4king / CircuitSim

Basic Circuit Simulator
https://ra4king.github.io/CircuitSim
BSD 3-Clause "New" or "Revised" License
76 stars 27 forks source link

Constant value bigger than bitsize #55

Closed Dallas-D closed 1 year ago

Dallas-D commented 5 years ago

Constants let you set a value that is bigger than what should be possible with its bit size. For example, you can set a constant to be 100 with a bit size of 1. The last bits are the only ones shown. For example, 100 is "01100100" in binary, so a bit size of 3 will display "100".

ra4king commented 5 years ago

I remember there was a reason why I didn't correct the input to the modulo of the bitsize. I'll play around with doing it again and see if I remember why.

ra4king commented 1 year ago

Lol years later cleaning up the CircuitSim bugs. I remember now: sometimes you might accidentally change the bitsize and you'd lose the large value. I think it's fine as is.