Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

SSE in DOS under JEMM386 ?? (DOSX)

posted by Rugxulo Homepage, Usono, 07.01.2008, 14:49

> > Would it be so horrible for JEMM386 or even HDPMI32 to automagically
> > enable SSE and FXSAVE/FXRESTORE for us?
>
> HDPMI does it. And Jemm intentionally touches only those bits in CR4 which
> it needs for its own purposes (VME, PGE).
>
> If you need it in DOS with Jemm, run a DEBUG script:
>
> a
> mov eax,cr4
> or ax,200
> mov cr4,eax
> mov ah,4c
> int 21
>
> g
> q


I don't think that's correct (and won't work in MS' 8086-only debug, you obviously need FD debug or similar, heh). At least, from what I gather, you have to turn on the MP bit and turn off the EM bit in CR0 and then enable OSFXSR in CR4. Then, it works in DOS (even without the need for FXSAVE/FXRSTOR). However, you need either a Pentium 4 or a AMD64 to use SSE2 (but SSE should work on Athlon XP or Pentium 3).

P.S. I read (and have now seen) that some late model Pentium 2s (e.g. bro's Intel Celeron "Mendocino" 366 Mhz) have the OSFXSR feature yet don't have SSE. Anyone know any good reason why?? :-P

---
Know your limits.h

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 236 users online (0 registered, 236 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum