comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jeffrey.carter@boeing.com>
Subject: Re: no crash dump ?
Date: Fri, 8 Mar 2002 22:13:26 GMT
Date: 2002-03-08T22:13:26+00:00	[thread overview]
Message-ID: <3C893786.12E70BCA@boeing.com> (raw)
In-Reply-To: 20020308172207.2a82c68a.bjorn.lundin@swipnet.se

"Bj�rn Lundin" wrote:
> 
> with Text_io; use Text_io;
> with system;
> with GNAT.Traceback.Symbolic;
> 
> procedure interrupt is
> 
>   Joystick_address : system.address := system'to_address(16#0201#);
> 
>   type byte is range 0..255;
>   for byte'size use 8;
>   Joystick : byte;
>   for Joystick'address use Joystick_address;
> 
> begin
>    put_line("Main program started!");
>    loop
>      put_line(byte'image(Joystick));
>      delay 0.2;
>    end loop;
> 
> exception
>   when Event : others =>
>     Put_Line (GNAT.Traceback.Symbolic.Symbolic_Traceback (Event));
> 
> end interrupt;

You probably want to apply pragma Volatile to Joystick.


-- 
Jeffrey Carter



  reply	other threads:[~2002-03-08 22:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-07 20:56 no crash dump ? Bj�rn Lundin
2002-03-07 22:08 ` Anders Gidenstam
2002-03-08  0:37 ` sk
2002-03-08 16:22   ` Bj�rn Lundin
2002-03-08 22:13     ` Jeffrey Carter [this message]
2002-03-08 22:49     ` sk
2002-03-09 18:07       ` Bj�rn Lundin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox