Size of words in NASM
I have a question: in assembler NASM one word is 2 bytes and dword that means two words mean 4 bytes and we can create an array: number resw 10 that means that we created an array with length of 10 words (20 bytes) and we can go to the next element of it with command add esi, 4 where in esi we have current address of array and by this command we add 4 bytes so we skip two elements, but my programs work equal with number resw 10 and number resd 10 that means create an array with 10 double words (40 bytes) and logically add esi, 4 should work only with it. So, what is the difference and why it w
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.