home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / misc / 998 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  2.4 KB

  1. Xref: sparky comp.os.misc:998 comp.os.vms:20327
  2. Path: sparky!uunet!digex.com!zbang
  3. From: zbang@access.digex.com (Carl P. Zwanzig)
  4. Newsgroups: comp.os.misc,comp.os.vms
  5. Subject: Re: Help on RT-11 macro language
  6. Date: 5 Jan 1993 03:57:14 GMT
  7. Organization: The Midnite Group
  8. Lines: 64
  9. Message-ID: <1ib0uqINNbfj@mirror.digex.com>
  10. References: <93Jan04.223305.29354@acs.ucalgary.ca>
  11. NNTP-Posting-Host: access.digex.com
  12. Keywords: RT-11, macro
  13.  
  14. In article <93Jan04.223305.29354@acs.ucalgary.ca> morrow@cns.ucalgary.ca (Bill Morrow) writes:
  15. >Hello all you old fellows,
  16. >
  17. >I have been forced to update some of the PDP-11 assembler acquisition
  18. >software running on our old RT-11 system. Of course,
  19. >there are no comments in the source, to save on disk space.
  20. >A week ago, I knew absolutely nothing about PDP-11 macro language.
  21. >I have been wading through the "Orange Wall", but
  22. Oh, the NEW books :-).
  23.  
  24. >I'm a bit confused by the unconditional branch instruction -
  25. >where does this code end up after the 'BR 10$+2' step?
  26.  
  27.  
  28. >DR3INT: 0
  29. >    BR    10$+2        <--- branch to where ?
  30. this would branch to the "107 operand on the move instruction but is
  31. probably a parameter, value=402
  32.  
  33. >    BR    20$+2
  34. this would branch to somewhere after 20$, but is probably also a parameter
  35.  
  36. >10$:    MOV    #107,DMACSR
  37. the instruction "107 is JMP PC, this is also illegal (mode 0 on a jmp)
  38. >    TST    ADCO        <--- here ?
  39. ..not here..
  40. >    BEQ    11$
  41. >    MOV    #113,KWREG
  42. >11$:    MOV    DR3INT+4,DR3INT
  43. >    TR            <--- or here ?
  44. ..or here..
  45. >12$:    et cetera ad nauseum
  46.  
  47. I'd guess that this is an interupt routine for a DR11-B DMA parrallel
  48. interface, but the manuals are buried.
  49.  
  50. >My intuitive guess is that it ends up at 'TST ADCO',
  51. >but the manual seems to be telling me it branches to
  52. >the indicated address.
  53. Trust the manual ;-)
  54.  
  55. >
  56. >While you're here, does the 'MOV' instruction at 11$ really move
  57. >the label 'DR3INT' to the same address as 10$? Why is the 
  58. >'BR 20$+2' there then?
  59. The MOV gets the data "br 20$+2".
  60.  
  61. >What does 'TR' do? I can't find it in the instruction set
  62. >or the macro language reference manual.
  63.  
  64. Probably a macro written by the code developers.
  65.  
  66. >Thanks for the help.
  67. >-- 
  68. >__________________________________________________________
  69. >Bill Morrow                    voice: (403) 220-6275
  70. >Clinical Neurosciences         fax: (403) 283-4740
  71. >University of Calgary          e-mail: morrow@cns.ucalgary.ca
  72.  
  73. Good luck with it,
  74.  
  75. Carl Zwanzig
  76. zbang@access.digex.com
  77.  
  78.