Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > openwatcom.users.c_cpp > #3580
| From | Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> |
|---|---|
| Newsgroups | openwatcom.users.c_cpp |
| Subject | Re: How do I use #pragma aux with the HLT instruction? |
| Date | 2019-10-10 23:37 +0800 |
| Organization | OpenWatcom |
| Message-ID | <qnnfj4$bat$1@www.openwatcom.org> (permalink) |
| References | <qnl1td$crh$1@www.openwatcom.org> <h06rg8Ffg8eU1@mid.individual.net> |
On 10/10/2019 3:42 am, nospam_2019@efbe.prima.de wrote: >> Dear o.u.c_cpp, >> >> How do I write a #pragma aux for the HLT instruction? And how do I use >> said #pragma aux? Are there any cotchas I need to be aware of when I >> use the HLT instruction? >> >> For context, I'm writing a DOS extended program with CauseWay, and want >> to be nice to the CPU fan in my program's idle loop for people such as >> myself who run DOS operating systems in a virtual machine. >> >> > You have seen this info about Auxiliary Pragmas in the C Guide? Thank you for the info. I got some help on IRC, and ended up with this definition. void hlt( void ); #pragma aux hlt = "hlt" modify exact [] nomemory; Unfortunately, it just ends with an error because it's a privileged instruction and I can't use it in protected mode. -- Johann | email: invalid -> com | www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | twitter: @myrkraverk
Back to openwatcom.users.c_cpp | Previous | Next — Previous in thread | Next in thread | Find similar
How do I use #pragma aux with the HLT instruction? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2019-10-10 01:31 +0800
Re: How do I use #pragma aux with the HLT instruction? nospam_2019@efbe.prima.de - 2019-10-09 21:42 +0200
Re: How do I use #pragma aux with the HLT instruction? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2019-10-10 23:37 +0800
Re: How do I use #pragma aux with the HLT instruction? Paul S Person <psperson1@ix.netcom.invalid> - 2019-10-10 09:07 -0700
Re: How do I use #pragma aux with the HLT instruction? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2019-10-11 00:18 +0800
Re: How do I use #pragma aux with the HLT instruction? Frank Beythien <fbeythien@gmx.de> - 2019-10-10 18:43 +0200
Re: How do I use #pragma aux with the HLT instruction? "Steven Levine" <steve53@nomail.earthlink.net> - 2019-10-12 16:55 +0000
csiph-web