home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16012 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.2 KB  |  40 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!dkuug!daimi!u920659
  3. From: u920659@daimi.aau.dk (Carsten S|rensen)
  4. Subject: Re: TurboDEX, a SIMPLE but elusive problem...
  5. Message-ID: <1992Nov18.110015.5132@daimi.aau.dk>
  6. Sender: u920659@daimi.aau.dk (Carsten S|rensen)
  7. Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
  8. References: <BxvtnJ.IwA@usenet.ucs.indiana.edu>
  9. Date: Wed, 18 Nov 92 11:00:15 GMT
  10. Lines: 28
  11.  
  12. graham@venus.iucf.indiana.edu (JIM GRAHAM) writes:
  13.  
  14. >I've tried the following:
  15. >
  16. >PROC main()
  17. >DEF reg:LONG
  18. >  reg := INTREQR
  19. >  write 'reg = \n',reg
  20. >ENDPROC
  21. >
  22. >What I get is a guru.  If I look at the assemly source created by
  23. >DEX, INTREQR does indeed equal $DFF01E.
  24. >
  25. >What am I doing wrong?
  26.  
  27. Well, I don't really remember which register comes directly after INTREQR in
  28. the memory, but when you read INTREQR as a LONG, you try to read the
  29. next register as well!!! And if it's a write-only register, you got a problem!
  30. Solution: Read INTREQR as a word.
  31.  
  32. >Thanks,
  33.  
  34. You're welcome :)
  35.  
  36. >Jim Graham 
  37.  
  38. Carsten Soerensen
  39. u920659@daimi.aau.dk
  40.