mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-08 23:57:05 +00:00
![Ryan Houdek](/assets/img/avatar_default.png)
Most of these were relying on the upper 16bits of the 80bit MM registers to be zero. This isn't necessarily true as one will find out when running this under the host runner.
34 lines
528 B
NASM
34 lines
528 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"MM0": "0x000000000000FFFF",
|
|
"MM1": "0x000000000000FFFF",
|
|
"MM2": "0x6162636465667778"
|
|
},
|
|
"MemoryRegions": {
|
|
"0x100000000": "4096"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov rdx, 0xe0000000
|
|
|
|
mov rax, 0x7172737475767778
|
|
mov [rdx + 8 * 0], rax
|
|
mov rax, 0x4142434445464748
|
|
mov [rdx + 8 * 1], rax
|
|
|
|
mov rax, 0x6162636465667778
|
|
mov [rdx + 8 * 2], rax
|
|
mov rax, 0x5152535455564748
|
|
mov [rdx + 8 * 3], rax
|
|
|
|
movq mm0, [rdx]
|
|
pcmpeqw mm0, [rdx + 8 * 2]
|
|
|
|
movq mm1, [rdx]
|
|
movq mm2, [rdx + 8 * 2]
|
|
pcmpeqw mm1, mm2
|
|
|
|
hlt
|