Friday, 15 May 2015

Definition of multipile double words in assembly -



Definition of multipile double words in assembly -

i've got next definition (a part of actual question):

turkey: mov ebx, ygg phone call foo foo: ;;does dra: dd 0xffff, sil, sil, sil ygg: dd 0x11, dra, sil dra sil: dd 3, 0, 0

now don't understand how draw memory of one.

i mean, ebx, address start of ygg [points @ 0x11 guess?], how navigate?

what have in next bytes? address dra, sil, , dra again?

ygg: dd 0x11, dra, sil, dra

but happens when like:

mov ebx, [ebx+4]

i know questions bit unfocused, it's because can't "see" how in memory.

example if memory location of "dra" starts @ offset 0x0000 in info segment:

mov ebx,ygg ; ebx = 0x00000010 mov ebx,[ebx+4] ; ebx = 0x00000000 (second dword of ds:ygg)

data segment starts offset 0x0000:

0x0000 dra dd 0x0000ffff, 0x00000020, 0x00000020, 0x00000020 0x0010 ygg dd 0x00000011, 0x00000000, 0x00000020, 0x00000000 0x0020 sil dd 0x00000003, 0x00000000, 0x00000000

assembly

No comments:

Post a Comment