0

How do I translate the following x86 real mode instruction to gas AT&T syntax?

cmp word [es:di], 0x1234
Peter
  • 2,919
  • 1
  • 16
  • 35
  • 1
    The obvious way would be to assemble with `nasm -felf32` and disassemble with `objdump -d` to see the syntax. The same instruction has the same syntax in 32-bit mode, just different machine code. – Peter Cordes Nov 24 '20 at 08:59
  • @PeterCordes: That makes a lot of sense, thanks. – Peter Nov 24 '20 at 09:06

0 Answers0