[comp.sys.amiga.programmer] trackdisk diskchange interrupt hassle

billy@phoenix.pub.uu.oz.au (Jeff Coleman) (01/31/91)

Hi,
  i am having hassles getting the trackdisk diskchange interrupt stuff
  to work. Basically what i do i open the device (most usual stuff here)
  setup a request structure for TD_ADDCHANGEINT as in the rkm pp894
  sendio it off..
  and i never seem to actually get into the interrupt handler routine at all
  when i change the disk. which is a bit strange.
  i notice that CBM say 1/2 of this doesn't work (the removal of the interrupt
  handler) under 1.3..i'm using 1.3.2 should the interrupt stuff still work??
  does anybody have a(short) working example of some code (i have read Messydos
  src , i was hoping there was something a bit clearer) that demos this 
  stuff???

thanx in advance

 Jeff


<----------------------------------------------------------------------------->
	Jeff Coleman          billy@phoenix.pub.uu.oz.au
 	                ..!uunet!munnari.oz!phoenix.pub.uu.oz.au!billy
<----------------------------------------------------------------------------->

jesup@cbmvax.commodore.com (Randell Jesup) (02/01/91)

In article <1991Jan31.103957.18207@phoenix.pub.uu.oz.au> billy@phoenix.pub.uu.oz.au (Jeff Coleman) writes:
>  i am having hassles getting the trackdisk diskchange interrupt stuff
>  to work. Basically what i do i open the device (most usual stuff here)
>  setup a request structure for TD_ADDCHANGEINT as in the rkm pp894
>  sendio it off..
>  and i never seem to actually get into the interrupt handler routine at all
>  when i change the disk. which is a bit strange.

	It does work (the FS uses this to get notification).

>  i notice that CBM say 1/2 of this doesn't work (the removal of the interrupt
>  handler) under 1.3..i'm using 1.3.2 should the interrupt stuff still work??
>  does anybody have a(short) working example of some code (i have read Messydos
>  src , i was hoping there was something a bit clearer) that demos this 
>  stuff???

	RemChangeInt doesn't work in <2.0.  There is a workaround in the
Autodoc or RKM's (Forbid(); Remove(); Permit() if I remember right).  That
workaround is still supported under 2.0, but under 2.0 RemChangeInt works
also.

-- 
Randell Jesup, Keeper of AmigaDos, Commodore Engineering.
{uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.commodore.com  BIX: rjesup  
The compiler runs
Like a swift-flowing river
I wait in silence.  (From "The Zen of Programming")  ;-)