What does OFFSET in 16 bit assembly code mean?

后端 未结 6 1100
不思量自难忘°
不思量自难忘° 2020-12-31 02:43

I am going through some example assembly code for 16-bit real mode.

I\'ve come across the lines:

    mov    bx, cs
    mov    ds, bx
    mov    si,          


        
6条回答
  •  天涯浪人
    2020-12-31 03:22

    offset means that si register will be equal to the offset of the variable value1 (not to its actual value). Offset is the address from the beginning of memory segment where the variable is stored. The offset is usually relative to ds segment (in your case ds and cs registers are pointing to the same segment).

提交回复
热议问题