Search code examples
assemblyx86-16mov

8086 assembly mov instruction not error


Im write this code in 8086 emulator and emulate but not give any error why?

org 100h

mov 1ah,dh

ret

edit: this is the emulate output enter image description here


Solution

  • emu8086 changed mov 1ah,dh to mov [1ah],dh. With square brackets it means: store DH to the memory at address DS:001A (not 0001A). I'd like to say that this behavior is a bug.