mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
28 lines
495 B
NASM
28 lines
495 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "0x0000000000000001",
|
|
"RBX": "0x0000000000010001"
|
|
},
|
|
"Mode": "32BIT"
|
|
}
|
|
%endif
|
|
|
|
; FEX-Emu had a bug where a16 loop instructions weren't treating the input RCX register as 16-bit.
|
|
; Effectively always treating it as 32-bit.
|
|
; Little test that operates at 16-bit and 32-bit sizes to ensure it is correctly handled.
|
|
mov eax, 0
|
|
mov ebx, 0
|
|
mov ecx, 0x0001_0001
|
|
|
|
.test:
|
|
inc eax
|
|
a16 loop .test
|
|
|
|
mov ecx, 0x0001_0001
|
|
.test2:
|
|
inc ebx
|
|
a32 loop .test2
|
|
|
|
hlt
|