Storing to memory - BCD or binary?

53 Views Asked by At

If an X86_64 machine save a integer 56 will that be stored in the memory cells as binary 00111000 or BCD 01010110?

1

There are 1 best solutions below

0
bobmon On BEST ANSWER

Almost always stored in pure binary (unsigned or 2's complement). Your program would have to do something special to store it in BCD, and very few programs have any reason to do that.