From: Sampo Niskanen Newsgroups: comp.os.msdos.djgpp Subject: cwsdpmi and registers questions Date: 21 Oct 1997 16:51:27 GMT Organization: Xgateway Finland Ltd. - news.xgw.fi server Lines: 20 Message-ID: <62imif$1sp@news.xgw.fi> NNTP-Posting-Host: lizard.compart.fi To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk How can I give cwsdpmi command line options (-s-)? I have tried hex-editing the 'cwsdpmi.exe' text in the binary from 'CWSDPMI.EXE',0,0,0,0,0 to 'CWSDPMI.EXE -s-',0 but it doesn't help. I've also tried editing the source where is the text cwsdpmi.exe and compiling but it does exactly the same thing. When I optimize fully (-O3), and use external asm-routines (made with nasm) what registers do I have to restore? Without optimization it doesn't need any registers restored, but when I started to use -O3 it gave trouble with atleast ESI and EDI. I'm not sure about the other registers and would like to be. Thanks. -- __________________________________________________ /____\ Sampo Niskanen <=> sampo AT compart DOT fi \ \ http://www.compart.fi/~sampo \ \ ________________________________________\___ \___/___________________________________________/