www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - ISR in D

reply astrus <jannes.lox gmail.com> writes:
Is there a way to do hardware interrupts in D? I've been looking 
around for a while now, but I haven't really found anything on 
the topic yet.
Dec 06 2022
parent "H. S. Teoh" <hsteoh qfbox.info> writes:
On Tue, Dec 06, 2022 at 08:03:35PM +0000, astrus via Digitalmars-d wrote:
 Is there a way to do hardware interrupts in D? I've been looking
 around for a while now, but I haven't really found anything on the
 topic yet.
That's a platform-dependent operation that has nothing to do with D itself. Probably your best bet is to use an asm block and write the instructions yourself. T -- Once the bikeshed is up for painting, the rainbow won't suffice. -- Andrei Alexandrescu
Dec 06 2022