0

I am trying to understand 8086 instruction encoding. Even though I found a general instruction and a bulky reference I still don't get it.

Could you please explain me how the following "translations" from byte data are done?

Thanks in advance!

48 -> dec ax

EB0D -> jmp short 0xf

642120 -> and [fs:bx+si],sp
muffel
  • 545
  • 1
  • 5
  • 19

2 Answers2

0

Your disassembler shows JMP SHORT offset from beginning of instruction when actual JMP SHORT counts from byte after instruction. Maybe you need other disassembler which does good decoding.

ZaB
  • 2,465
0

An (or this) unconditional jump is followed by data, either real data or alignment data. For 8086, 2 or 4 is a good alignment, so the next instruction could start at the 21 or 20 or beyond that.

ott--
  • 2,251