Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Are all integers stored as compliment of 2 internally?

$
0
0

I'm brushing up my assembly skills and basically just following a book at this point but I'm doing some research on my own by disassembling all the programs that I assemble (I assemble with ml64 microsoft assembler and disassemble with x64dbg). I'm getting some strange results in the disassembly. For example I'm storing 9,223,372,036,854,775,807 in a quad word, which should be the max integer value that a could be held by a qword, the disassembly shows FF FF FF FF FF FF FF 7F, however if I add 1 to …


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>