0

I'm writing a little x86 program and I'm surprised about "types" size.

.short are handling 4 bytes values such a .short 0xFFFF and .long 8 bytes, while .bytes are handling 2 bytes.

I can't find an explaination, what I'm doing wrong?

nneonneo
  • 171,345
  • 36
  • 312
  • 383
Tempax
  • 139
  • 2
  • 6

1 Answers1

2

0xFFFF is two bytes, not four. A single hex digit is four bits (a nybble), and there are eight bits in a byte.

nneonneo
  • 171,345
  • 36
  • 312
  • 383