SSE in DOS under JEMM386 ?? (DOSX)
Okay, so I've been reading up on SSE/SSE2 (32-bit) somewhat, but the problem is that it needs OS support (e.g. Linux 2.4, Win98). It seems that you have to enable the CR4 bit 9 (OSFXSR) as well as enable CR0's MP (bit 1) but disable CR0's EM (bit 2). Then you have to actually FXSAVE [512_byte_area], do your thing, then FXRSTOR [512_byte_area]. (And of course CPUID check, then CPUID, first before trying to run any of this stuff.)
I am testing a program written by someone else, but it seems to not work in pure DOS.
I finally seem to get it to run w/ SSE2 in QEMU, but only if running HIMEMX (e.g. real mode) and with PMODETSR (ring 0, no paging) since it's a DJGPP-compiled program (needs DPMI).
Japheth, is this normal? Do you know what I'm doing wrong or if there's an easy way to correct it? (That's assuming you know anything about this stuff, which you must, at least vaguely.)
http://rugxulo.googlepages.com/paq8-sse.7z (w/ src + .EXE, etc.)
N.B. This is not a great hack of mine or anything, just piecing it all together really. Any help is welcome.
P.S. I really wish I could test under Vista, but it still has that bloomin' 32 MB DPMI limit! (Help me, SP1, you're my only hope!)
---
Know your limits.h
Complete thread:
- SSE in DOS under JEMM386 ?? - Rugxulo, 03.01.2008, 06:54 (DOSX)
- SSE in DOS under JEMM386 ?? - DOS386, 03.01.2008, 08:12
- SSE in DOS under JEMM386 ?? - Rugxulo, 04.01.2008, 01:03
- SSE in DOS under JEMM386 ?? - Japheth, 03.01.2008, 09:19
- SSE in DOS under JEMM386 ?? - Rugxulo, 04.01.2008, 01:05
- SSE in DOS under JEMM386 ?? - Japheth, 04.01.2008, 09:44
- SSE in HDPMI / bug (c/c) - DOS386, 04.01.2008, 10:20
- SSE in HDPMI / bug (c/c) - Japheth, 04.01.2008, 11:12
- SSE in HDPMI / bug (c/c) - Rugxulo, 04.01.2008, 22:39
- SSE in HDPMI / bug (c/c) - Japheth, 04.01.2008, 11:12
- SSE in DOS under JEMM386 ?? - Rugxulo, 07.01.2008, 14:49
- SSE in DOS under JEMM386 ?? - Japheth, 07.01.2008, 17:42
- SSE in DOS under JEMM386 ?? - Rugxulo, 09.01.2008, 01:23
- SSE in DOS under JEMM386 ?? - Rugxulo, 09.01.2008, 10:46
- SSE in DOS -> Illegal Instruction Exception - DOS386, 10.01.2008, 01:22
- SSE in DOS -> Illegal Instruction Exception - Steve, 10.01.2008, 08:46
- SSE in DOS -> alignment issues - Rugxulo, 10.01.2008, 22:21
- SSE in DOS under JEMM386 ?? - Japheth, 10.01.2008, 17:19
- SSE in DOS -> Illegal Instruction Exception - DOS386, 10.01.2008, 01:22
- SSE in DOS under JEMM386 ?? - Rugxulo, 09.01.2008, 10:46
- SSE in DOS under JEMM386 ?? - Rugxulo, 09.01.2008, 01:23
- SSE in DOS under JEMM386 ?? - Japheth, 07.01.2008, 17:42
- SSE in HDPMI / bug (c/c) - DOS386, 04.01.2008, 10:20
- SSE in DOS under JEMM386 ?? - Japheth, 04.01.2008, 09:44
- SSE in DOS under JEMM386 ?? - Rugxulo, 04.01.2008, 01:05
- SSE in pure DOS - Rugxulo, 04.01.2008, 06:09
- Secure Socket Extremism in DOS | You maybe have a Page Foul - DOS386, 04.01.2008, 07:52
- SSE in DOS | Page Fault | JEMM386 / HDPMI32 - Rugxulo, 04.01.2008, 22:47
- SSE in DOS | Page Fault <- YES, your bug | HDPMI32 - DOS386, 05.01.2008, 02:19
- SSE2 in DOS | PAQ8o8z (Jan. 6) - Rugxulo, 06.01.2008, 05:09
- SSE2 in DOS | PAQ8o8z (Jan. 6) - DOS386, 08.01.2008, 02:00
- SSE2 in DOS | PAQ8o8z (Jan. 6) - Rugxulo, 06.01.2008, 05:09
- SSE in DOS | Page Fault <- YES, your bug | HDPMI32 - DOS386, 05.01.2008, 02:19
- SSE in DOS | Page Fault | JEMM386 / HDPMI32 - Rugxulo, 04.01.2008, 22:47
- Secure Socket Extremism in DOS | You maybe have a Page Foul - DOS386, 04.01.2008, 07:52
- MS the "only hope"? - Japheth, 04.01.2008, 12:11
- MS the "only hope"? - RayeR, 04.01.2008, 18:09
- MS the "only hope"? - Japheth, 04.01.2008, 19:16
- MS the "only hope"? - RayeR, 04.01.2008, 22:17
- MS the "only hope"? (Vista DPMI bug: 32 MB max.) - Rugxulo, 04.01.2008, 22:31
- MS the "only hope" ? NOT for me !!! - DOS386, 05.01.2008, 02:22
- MS the "only hope" ? NOT for me !!! - RayeR, 05.01.2008, 18:58
- MS the "only hope" ? NOT for me !!! Multiboot - DOS386, 08.01.2008, 01:47
- NTVDM forever! - Japheth, 08.01.2008, 09:02
- MS the "only hope" ? NOT for me !!! Multiboot - Steve, 08.01.2008, 13:54
- MS the "only hope" ? NOT for me !!! Multiboot - Rugxulo, 09.01.2008, 01:19
- MS the "only hope" ? NOT for me !!! Multiboot - RayeR, 14.01.2008, 21:34
- MS the "only hope" ? NOT for me !!! Multiboot - DOS386, 08.01.2008, 01:47
- MS the "only hope" ? NOT for me !!! - RayeR, 05.01.2008, 18:58
- A TSR worth a try in Vista - Japheth, 05.01.2008, 11:04
- A TSR worth a try in Vista - Rugxulo, 05.01.2008, 21:08
- A TSR worth a try in Vista - Khusraw, 07.01.2008, 11:06
- A TSR worth a try in Vista - Rugxulo, 07.01.2008, 14:44
- A TSR worth a try in Vista - Japheth, 07.01.2008, 17:34
- A TSR worth a try in Vista - Rugxulo, 09.01.2008, 01:09
- A TSR worth a try in Vista - Khusraw, 07.01.2008, 11:06
- A TSR worth a try in Vista - Rugxulo, 05.01.2008, 21:08
- MS the "only hope" ? NOT for me !!! - DOS386, 05.01.2008, 02:22
- MS the "only hope"? - Japheth, 04.01.2008, 19:16
- MS the "only hope"? - RayeR, 04.01.2008, 18:09
- SSE in DOS under JEMM386 ?? - DOS386, 03.01.2008, 08:12