![]() |
Assembler Zugriff auf 128 bit variable
Hallo,
weiß jemand wie man das xxm0 Register mit einer 128bit Variable lädt? Für 64 Bit:
Delphi-Quellcode:
Für 128 Bit?
var
Bytes8: Int64; // Bzw. Double asm movq xxm0,Bytes8
Delphi-Quellcode:
Vielen Dank
var
Bytes16: ??? // Welche Deklaration? asm movaps xmm0,Bytes16 |
AW: Assembler Zugriff auf 128 bit variable
Per se ist der Typ erstmal egal, da es nativ sowieso nichts gibt und es somit nur als Datenspeicher dient.
Delphi-Quellcode:
oder in zwei einzelne Variablen
array[0..15] of Byte;
array[0..3] of UInt32; array[0..1] of UInt64; record lo, hi: UInt64; end; ...
Delphi-Quellcode:
var lo, hi: UInt64;
movdqu ![]() |
AW: Assembler Zugriff auf 128 bit variable
<gelöscht>
|
AW: Assembler Zugriff auf 128 bit variable
movb = byte (1)
movw = word (2) movd = doubleword (2*2) movq = quadword (4*2) movdqu = double-quadword (2*4*2) |
AW: Assembler Zugriff auf 128 bit variable
Gibt es eine Entsprechung für
vmovups xmm0,[rsi] in Delphi? Oder gar für vmovups ymm0,[rsi]; vmovups zmm0,[rsi] |
AW: Assembler Zugriff auf 128 bit variable
Wieviele Zyklen (CPU Cycles) benötigen diese Befehle? (einschließlich movdqu)
|
AW: Assembler Zugriff auf 128 bit variable
Nicht alles versteht der Assembler im Delphi,
aber was er nicht kennt, dass kann man auch direkt binär eingeben. z.B.
Delphi-Quellcode:
für
dw 310Fh
Delphi-Quellcode:
(db dw dd)
rdtsc
Zitat:
genaueres wirst nur wohl in ihrer Dekumentation finden. |
AW: Assembler Zugriff auf 128 bit variable
Zitat:
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:25 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz