Adds a couple basic 32bit x86 unit tests

Super basic, just to show them working
This commit is contained in:
Ryan Houdek 2020-06-10 17:41:52 -07:00
parent 263ceb7086
commit c7f2aa1ddd
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,8 @@
%ifdef CONFIG
{
"Mode": "32BIT"
}
%endif
BITS 32;
hlt

View 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