What does OFFSET in 16 bit assembly code mean?

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

    In x86 16bit mode, address space is not flat; instead, addresses are composed of an offset and a "segment". The "segment" points to a 64K space, offset is within that space.

    See http://en.wikipedia.org/wiki/Memory_segmentation

提交回复
热议问题