unittests: SGDT tests

This commit is contained in:
Ryan Houdek committed 2022-11-24 17:47:31 -08:00
1 parent c96c39d5b1
commit 3e6d23ae7e
2 files changed
+41

No files matched your search

@@ -0,0 +1,21 @@
%ifdef CONFIG
{
"RegData": {
"RAX": "0",
"RBX": "0x00000000FFFE0000"
},
"Mode": "32BIT"
}
%endif
sgdt [rel data]
movzx eax, word [rel data]
mov ebx, dword [rel data + 2]
hlt
data:
; Limit
dw 0
; Base
dd 0
+20
View File
@@ -0,0 +1,20 @@
%ifdef CONFIG
{
"RegData": {
"RAX": "0",
"RBX": "0xFFFFFFFFFFFE0000"
}
}
%endif
sgdt [rel data]
movzx rax, word [rel data]
mov rbx, qword [rel data + 2]
hlt
data:
; Limit
dw 0
; Base
dq 0