fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 2 days ago10001mander.xyzimagemessage-square56fedilinkarrow-up1677arrow-down16
arrow-up1671arrow-down1image10001mander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 2 days agomessage-square56fedilink
minus-squareswag_money@lemmy.worldlinkfedilinkEnglisharrow-up2·14 hours agowhat’s the general rule for translating negatives from binary? did you just do like 17 - 2 • (-1) or something?
minus-squareYardy Sardley@lemmy.calinkfedilinkEnglisharrow-up3·12 hours agoI 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.
minus-squareswag_money@lemmy.worldlinkfedilinkEnglisharrow-up1·11 hours agothanks 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?
minus-squarecarpelbridgesyndrome@sh.itjust.workslinkfedilinkEnglisharrow-up5·1 day agoMmm yes. 5 bit two’s complement. I shouldn’t make fun of it we’ve definitly made some ISA that weird.
Or -15 days
what’s the general rule for translating negatives from binary? did you just do like 17 - 2 • (-1) or something?
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.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?
Ominous
Mmm yes. 5 bit two’s complement.
I shouldn’t make fun of it we’ve definitly made some ISA that weird.