Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

SSE instructions in DOS programs? (Developers)

posted by RayeR(R) Homepage, CZ, 02.01.2019, 22:56

> Internet says that it is enough to test the 9.bit and 10.bit in the CR4
> register. But "MOV CR4,AX" is a privileged instruction. So - what to do?

Is it necessary under pure DOS? If there will run only one program that use SSE it shouldn't be needed to save context as nothing else could corrupt it. It would probably work for Win95 too - task will be switched but SSE regs remains if no other app wil use it. But of course it would be correct to use context saving. BTW you will need extra alignment for SSE data (and maybe instructions?) I think 16B boundary. There was a problem that SSE code of FFMPEG didn't work under DOS/DJGPP so I disabled all inline asm code for SSE but I never went deep into it if there's some workaround.

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

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