A
A
Anton Fedoryan2015-09-07 10:47:41
assembler
Anton Fedoryan, 2015-09-07 10:47:41

Am I describing the logical expression correctly?

There is the following expression:
WORD - 32 bits
DWORD - 64 bits
WORD[2–31] ←DWORD[5–34]
Did I describe the logic correctly?
Shift DWORD to the left by 3 bits, reset the first 2 and the last, starting from 64 to 35
WORD = WORD | ((DWORD << 3) & 0x3FFFFFFFC)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2015-09-07
@OLS

No, you still need to overwrite garbage values ​​in bits [2-31] in WORD before ORing.
Yes, and your constant is strange for the mask [2-31] - 0x3FFFFFFFC

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question