what’s the general rule for translating negatives from binary? did you just do like 17 - 2 • (-1) or something?
Comment on 10001
yardy_sardley@lemmy.ca 1 day agoOr -15 days
swag_money@lemmy.world 12 hours ago
yardy_sardley@lemmy.ca 10 hours ago
I used what known as 2’s compliment. Take the complement (flip all the bits - here that would give you
01110
which is 14) then add 1.swag_money@lemmy.world 9 hours ago
thanks for the explanation! could you express it as a NOT operation plus one? like is that how it would be processed at a low level?
carpelbridgesyndrome@sh.itjust.works 1 day ago
Mmm yes. 5 bit two’s complement.
I shouldn’t make fun of it we’ve definitly made some ISA that weird.
Dabundis@lemmy.world 1 day ago
Ominous