| 72 | #endif |
| 73 | |
| 74 | void initMmxTest() { |
| 75 | newInstruction(0); |
| 76 | memory->writeq(cpu->seg[DS].address, MMX_MEM_VALUE64_DEFAULT); |
| 77 | memory->writeq(cpu->seg[DS].address+MMX_MEM_VALUE64_OFFSET, MMX_MEM_VALUE64); |
| 78 | memory->writed(cpu->seg[DS].address+MMX_MEM_VALUE32_OFFSET, MMX_MEM_VALUE32); |
| 79 | for (int i=0;i<8;i++) { |
| 80 | // movq mm0, QWORD PTR ds:0x0 |
| 81 | pushCode8(0x0f); |
| 82 | pushCode8(0x6F); |
| 83 | pushCode8(0x04 | (i<<3)); |
| 84 | pushCode8(0x25); |
| 85 | pushCode32(0); |
| 86 | } |
| 87 | cpu->big = 1; |
| 88 | } |
| 89 | |
| 90 | void loadMMX(U8 reg, U32 index, U64 value) { |
| 91 | memory->writeq(cpu->seg[DS].address+MMX_MEM_VALUE_TMP_OFFSET+index*16, value); |
no test coverage detected