Reading data may require using directives to help the assembler. We use byte ptr, word ptr, or dword ptr:
; the following lines reads from memory mov al, byte ptr [00000071] ; al = 71h mov cx, word ptr [00000071] ; cx = 7271h mov edx, dword ptr [00000071] ; edx = 74737271h
; the following lines writes to memory mov eax, 011223344h mov byte ptr [00000080], al ; writes the value in al to address 00000080 mov word ptr [00000081], ax ; writes the value in ax to address 00000081 mov dword ptr [00000083], eax ; writes the value in eax to address 00000083