What does SEG directive do in 8086?

前端 未结 3 1693
花落未央
花落未央 2021-01-23 19:51

SEG A :

Assigns the content held in segment register corresponding to the segment in which A resides to the operand.

I guess that means

3条回答
  •  鱼传尺愫
    2021-01-23 19:57

    It copies the content of AX + DX address (which is A) to AX.

    MOV AX, LEA A ; Copy A offset to AX
    MOV DX, SEG A ; Copy A segment to DX
    MOV AX, [AX + DX] ; Copy A to AX
    

提交回复
热议问题