mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-23 08:12:34 +00:00
Adds a couple basic 32bit x86 unit tests
Super basic, just to show them working
This commit is contained in:
parent
263ceb7086
commit
c7f2aa1ddd
8
unittests/ASM/x32/x32_basic.asm
Normal file
8
unittests/ASM/x32/x32_basic.asm
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
%ifdef CONFIG
|
||||||
|
{
|
||||||
|
"Mode": "32BIT"
|
||||||
|
}
|
||||||
|
%endif
|
||||||
|
BITS 32;
|
||||||
|
|
||||||
|
hlt
|
21
unittests/ASM/x32/x32_call_ret.asm
Normal file
21
unittests/ASM/x32/x32_call_ret.asm
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
%ifdef CONFIG
|
||||||
|
{
|
||||||
|
"Mode": "32BIT",
|
||||||
|
"RegData": {
|
||||||
|
"RAX": "0xFFFFFFFF"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%endif
|
||||||
|
BITS 32;
|
||||||
|
|
||||||
|
mov esp, 0xe8000000
|
||||||
|
|
||||||
|
mov eax, 0
|
||||||
|
call .label
|
||||||
|
|
||||||
|
hlt
|
||||||
|
|
||||||
|
.label:
|
||||||
|
mov eax, -1
|
||||||
|
ret
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user