Files
FEX-Emu--FEX/unittests/32Bit_ASM/Primary/Push_Segments.asm
T
Ryan Houdek 9cf047317d Adds unit tests for 32bit segment register push and pop
This only tests to ensure we are pushing the correct amount data rather
than the segment registers being correct.

Bit difficult to test for anything other than null descriptor
2020-10-22 19:10:28 -07:00

30 lines
361 B
NASM

%ifdef CONFIG
{
"RegData": {
"RSP": "0xE000001C"
},
"Mode": "32BIT"
}
%endif
mov esp, 0xe0000040
; Only push the segments
; Doesn't check for a correct segment value
; Just ensures we are pushing the correct amount of data
push cs
push ss
push ds
push es
push fs
push gs
o16 push cs
o16 push ss
o16 push ds
o16 push es
o16 push fs
o16 push gs
hlt