hsl1_p1.asm~ 566 B

123456789101112
  1. pxor xmm7, xmm7 ; xmm7 = | 00 | 00 | 00 | 00 |;
  2. insertps xmm7, xmm0, 0b00010000 ; xmm7 = | 00 | 00 | HH | 00 |;
  3. insertps xmm7, xmm1, 0b00100000 ; xmm7 = | 00 | SS | HH | 00 |;
  4. insertps xmm7, xmm2, 0b00110000 ; xmm7 = | LL | SS | HH | 00 |;
  5. mov rdi, 16 ; pido el espacio de memoria que
  6. ; voy a necesitar para la funcion rgbTOhsl
  7. call malloc ; no puedo usar el stack porque
  8. ; la variable no puede ser local (de esa forma tira
  9. mov rbx, rax ; segfault al llamar a rgbTOhsl)
  10. movdqu [rsp], xmm7 ; "push" xmm7
  11. sub rsp, 16