From the course: Learning Assembly Language

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Extended move instructions

Extended move instructions - Python Tutorial

From the course: Learning Assembly Language

Start my 1-month free trial

Extended move instructions

- [Instructor] Let's take a look at how we move, into and around the Extended Capability registers. To start with, we'll declare, 128 bit value. Which has to be aligned on a 16 byte boundary. In the code section, we'll Load xmm1, with our 128 bit value, in memory. movaps xmm1,val12x And we can code a special moving instruction, to move the top 64 bit half of one extended register into another register, in this case, xmm2. movhlps xmm2,xmm1 And let's Build and Debug that. Run to user code, and down into our moves, and as we move xmm1, with our value in memory, we can see the value set, and the movhlps. We move the top half into the bottom of xmm2. Another advanced register instruction, is the move with mask. This instruction, uses two 10 byte registers. Which are coded as mm registers. And sometimes also called st registers. One is used as an import value, and the second a mask. And the result is written into the…

Contents