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

  1. Xref: sparky comp.os.misc:994 comp.os.vms:20314
  2. Newsgroups: comp.os.misc,comp.os.vms
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!morrow@cns.ucalgary.ca
  4. From: morrow@cns.ucalgary.ca (Bill Morrow)
  5. Subject: Help on RT-11 macro language
  6. Sender: news@acs.ucalgary.ca (USENET News System)
  7. Message-ID: <93Jan04.223305.29354@acs.ucalgary.ca>
  8. Date: Mon, 04 Jan 93 22:33:05 GMT
  9. Nntp-Posting-Host: cns16.cns.ucalgary.ca
  10. Organization: University of Calgary
  11. Keywords: RT-11, macro
  12. Lines: 38
  13.  
  14. Hello all you old fellows,
  15.  
  16. I have been forced to update some of the PDP-11 assembler acquisition
  17. software running on our old RT-11 system. Of course,
  18. there are no comments in the source, to save on disk space.
  19. A week ago, I knew absolutely nothing about PDP-11 macro language.
  20. I have been wading through the "Orange Wall", but
  21. I'm a bit confused by the unconditional branch instruction -
  22. where does this code end up after the 'BR 10$+2' step?
  23.  
  24. DR3INT: 0
  25.     BR    10$+2        <--- branch to where ?
  26.     BR    20$+2
  27. 10$:    MOV    #107,DMACSR
  28.     TST    ADCO        <--- here ?
  29.     BEQ    11$
  30.     MOV    #113,KWREG
  31. 11$:    MOV    DR3INT+4,DR3INT
  32.     TR            <--- or here ?
  33. 12$:    et cetera ad nauseum
  34.  
  35. My intuitive guess is that it ends up at 'TST ADCO',
  36. but the manual seems to be telling me it branches to
  37. the indicated address.
  38.  
  39. While you're here, does the 'MOV' instruction at 11$ really move
  40. the label 'DR3INT' to the same address as 10$? Why is the 
  41. 'BR 20$+2' there then?
  42.  
  43. What does 'TR' do? I can't find it in the instruction set
  44. or the macro language reference manual.
  45.  
  46. Thanks for the help.
  47. -- 
  48. __________________________________________________________
  49. Bill Morrow                    voice: (403) 220-6275
  50. Clinical Neurosciences         fax: (403) 283-4740
  51. University of Calgary          e-mail: morrow@cns.ucalgary.ca
  52.