mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 09:00:40 +02:00
Adds unit tests for 32bit popa
This commit is contained in:
1 parent
d6c3518b74
commit
68f3a04f5b
2 files changed
+68
No files matched your search
@@ -0,0 +1,30 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0x6",
|
||||
"RCX": "0x5",
|
||||
"RDX": "0x4",
|
||||
"RSP": "0xE0000020",
|
||||
"RBX": "0x3",
|
||||
"RBP": "0x2",
|
||||
"RSI": "0x1",
|
||||
"RDI": "0x0"
|
||||
},
|
||||
"Mode": "32BIT"
|
||||
}
|
||||
%endif
|
||||
|
||||
mov esp, 0xe0000020
|
||||
|
||||
push dword 0x6
|
||||
push dword 0x5
|
||||
push dword 0x4
|
||||
push dword 0x3
|
||||
push dword 0x41424344 ; Skipped
|
||||
push dword 0x2
|
||||
push dword 0x1
|
||||
push dword 0x0
|
||||
|
||||
popad
|
||||
|
||||
hlt
|
||||
@@ -0,0 +1,38 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0x6",
|
||||
"RCX": "0x5",
|
||||
"RDX": "0x4",
|
||||
"RSP": "0xE0000020",
|
||||
"RBX": "0x3",
|
||||
"RBP": "0x2",
|
||||
"RSI": "0x1",
|
||||
"RDI": "0x0"
|
||||
},
|
||||
"Mode": "32BIT"
|
||||
}
|
||||
%endif
|
||||
|
||||
mov esp, 0xe0000020
|
||||
|
||||
mov eax, 0xFF
|
||||
mov ecx, 0xFF
|
||||
mov edx, 0xFF
|
||||
mov ebx, 0xFF
|
||||
mov ebp, 0xFF
|
||||
mov esi, 0xFF
|
||||
mov edi, 0xFF
|
||||
|
||||
push word 0x6
|
||||
push word 0x5
|
||||
push word 0x4
|
||||
push word 0x3
|
||||
push word 0x4142 ; Skipped
|
||||
push word 0x2
|
||||
push word 0x1
|
||||
push word 0x0
|
||||
|
||||
o16 popa
|
||||
|
||||
hlt
|
||||
Reference in new issue
Block a user