2016-11-19 47 views
0
section .bss 
    length equ 16 
    number: resb length 

這僅適用於64個位:如何在彙編中將16字節的數字存儲到內存中?

mov qword[number], 43271 

這被表示只有8個字節(64位)的。我需要將值存儲在128位內存中,但我不知道如何做到這一點。

感謝

+0

你可能只是更多的門店 – harold

+1

或使用SSE加載/存儲(例如,['MOVDQU'] (http://www.felixcloutier.com/x86/MOVDQU.html))。 –

+1

其次。像'mov qword [number],43271' +'mov qword [number + 8],54382'。 – zx485

回答

3

的標準方法是使用兩個存儲指令,每一個半:

mov qword [number], 1234 
mov qword [number+8], 4567 
相關問題