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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!venus.iucf.indiana.edu!graham
  3. From: graham@venus.iucf.indiana.edu (JIM GRAHAM)
  4. Subject: TurboDEX, a SIMPLE but elusive problem...
  5. Message-ID: <BxvtnJ.IwA@usenet.ucs.indiana.edu>
  6. News-Software: VAX/VMS VNEWS 1.3-4   
  7. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  8. Nntp-Posting-Host: venus.iucf.indiana.edu
  9. Reply-To: graham@venus.iucf.indiana.edu
  10. Organization: Somewhere in Bloomington, Indiana
  11. Distribution:  world
  12. Date: Tue, 17 Nov 1992 22:36:39 GMT
  13. Lines: 38
  14.  
  15. This is driving me nuts!
  16.  
  17. As those of you who are familiar with TurboDEX know, you can access the
  18. custom registers simply by specifying their uppercase names.
  19.  
  20. Here's an example of what I would like to do...
  21.  
  22. Suppose I want to read the value in INTREQR.  Then I wish to write that
  23. value to the current cli from which I ran the program.
  24.  
  25. How do I do it?
  26.  
  27. I've tried the following:
  28.  
  29. PROC main()
  30. DEF reg:LONG
  31.   reg := INTREQR
  32.   write 'reg = \n',reg
  33. ENDPROC
  34.  
  35. What I get is a guru.  If I look at the assemly source created by
  36. DEX, INTREQR does indeed equal $DFF01E.
  37.  
  38. What am I doing wrong?
  39.  
  40. Thanks,
  41.  
  42.  
  43. Jim Graham 
  44.  
  45.         -> ->Disclaimer: I do not speak for my company. <- <-
  46.                           Neither do they speak for me.
  47.  ______________________________________________________________________
  48. | Internet: graham@venus.iucf.indiana.edu                              |
  49. |           dolmen!jgraham@moose.cs.indiana.edu                        |
  50. | BBS:      The PORTAL DOLMEN BBS/ParaNet ALPHA-GAMMA (sm) (9:1012/13) |
  51. |            (812) 334-0418, 24hrs.                                    |
  52. |______________________________________________________________________|
  53.