What does OFFSET in 16 bit assembly code mean?

后端 未结 6 1043
不思量自难忘°
不思量自难忘° 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:23

    Offset is basically the distance from the segment point(also called datum point). for example segment address is 0000 and the offset or logical address is 0100 then the physical address can be counted by adding the two pairs. Physical Address = 0000+0100=0100 Means that our required location is on the address of 0100. Similarly if segment address is 1DDD and offset is 0100 then : Physical address is : 1DDD+0100=1EDD

    Means that our destination is 1EDD.

提交回复
热议问题