Re: Signed addittion/subtraction beyond 8 bits
Posted: Thu Oct 05, 2023 8:21 am
drogon wrote:
... it adds a bit of completeness to it all and it sort of surprises me that it's taken so long for me to use that particular instruction.
Also interesting to note that this code (for a Basic interpreter) checks overflow when things like BCPL, C, etc. don't check at all and just wrap... I wasn't going to bother until I found some code producing odd results and it was overflowing that was the cause.
Also interesting to note that this code (for a Basic interpreter) checks overflow when things like BCPL, C, etc. don't check at all and just wrap... I wasn't going to bother until I found some code producing odd results and it was overflowing that was the cause.