-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1210 from Sonicadvance1/proton_6.3_fixes
Proton 6.3 32-bit fixes
- Loading branch information
Showing
6 changed files
with
591 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
%ifdef CONFIG | ||
{ | ||
"RegData": { | ||
"RAX": "0xFFFF0033", | ||
"RBX": "0xFFFF0033", | ||
"RCX": "0xFFFF0033" | ||
}, | ||
"Mode": "32BIT" | ||
} | ||
%endif | ||
|
||
mov eax, 0x33 | ||
mov gs, ax | ||
mov fs, ax | ||
mov es, ax | ||
|
||
mov eax, 0xFFFFFFFF | ||
mov ebp, 0xe0000000 | ||
|
||
; Store 32bits of data | ||
mov dword [ebp + 0], eax | ||
mov dword [ebp + 4], eax | ||
mov dword [ebp + 8], eax | ||
|
||
; Ensure that the segment store only writes 16-bits | ||
mov word [ebp + 0], gs | ||
mov word [ebp + 4], fs | ||
mov word [ebp + 8], es | ||
|
||
mov eax, 0 | ||
mov ebx, 0 | ||
mov ecx, 0 | ||
mov eax, dword [ebp + 0] | ||
mov ebx, dword [ebp + 4] | ||
mov ecx, dword [ebp + 8] | ||
|
||
hlt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
%ifdef CONFIG | ||
{ | ||
"RegData": { | ||
"RAX": "0xFFFF0033", | ||
"RBX": "0x33", | ||
"RCX": "0x33" | ||
}, | ||
"Mode": "32BIT" | ||
} | ||
%endif | ||
|
||
mov eax, 0x33 | ||
mov gs, ax | ||
mov fs, ax | ||
mov es, ax | ||
|
||
mov eax, 0xFFFFFFFF | ||
mov ebx, 0xFFFFFFFF | ||
mov ecx, 0xFFFFFFFF | ||
|
||
; 16-bit insert | ||
mov ax, gs | ||
; 32-bit zext | ||
mov ebx, fs | ||
mov ecx, es | ||
|
||
hlt |
Oops, something went wrong.