What to do ds: si and es: di mean in the assembly?

The movsb command (move string, bytes) extracts bytes at the address ds: si, saves it at the address es: di, and then increases or decreases si and di registers by one.

I know esi, si and edi, di registers,

but not ds:siand es:di,

what do they mean?

+6
source share
2 answers

ds:siand es:dimean segment: the offset referenced by the specified registers. This is primarily important when you are working in real mode (where the offsets do not exceed 64 Kb).

In real mode, the segment is offset in view segment * 16 + offset.

"". , , , . - () CS, DS, ES SS, 0 4 , DS ES .

+6

, LODSB , . es: di ds: si cx , , LODSB LOADSW - . , . , : http://vitaly_filatov.tripod.com/ng/asm/asm_000.71.html

0

All Articles