home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.misc:998 comp.os.vms:20327
- Path: sparky!uunet!digex.com!zbang
- From: zbang@access.digex.com (Carl P. Zwanzig)
- Newsgroups: comp.os.misc,comp.os.vms
- Subject: Re: Help on RT-11 macro language
- Date: 5 Jan 1993 03:57:14 GMT
- Organization: The Midnite Group
- Lines: 64
- Message-ID: <1ib0uqINNbfj@mirror.digex.com>
- References: <93Jan04.223305.29354@acs.ucalgary.ca>
- NNTP-Posting-Host: access.digex.com
- Keywords: RT-11, macro
-
- In article <93Jan04.223305.29354@acs.ucalgary.ca> morrow@cns.ucalgary.ca (Bill Morrow) writes:
- >Hello all you old fellows,
- >
- >I have been forced to update some of the PDP-11 assembler acquisition
- >software running on our old RT-11 system. Of course,
- >there are no comments in the source, to save on disk space.
- >A week ago, I knew absolutely nothing about PDP-11 macro language.
- >I have been wading through the "Orange Wall", but
- Oh, the NEW books :-).
-
- >I'm a bit confused by the unconditional branch instruction -
- >where does this code end up after the 'BR 10$+2' step?
-
-
- >DR3INT: 0
- > BR 10$+2 <--- branch to where ?
- this would branch to the "107 operand on the move instruction but is
- probably a parameter, value=402
-
- > BR 20$+2
- this would branch to somewhere after 20$, but is probably also a parameter
-
- >10$: MOV #107,DMACSR
- the instruction "107 is JMP PC, this is also illegal (mode 0 on a jmp)
- > TST ADCO <--- here ?
- ..not here..
- > BEQ 11$
- > MOV #113,KWREG
- >11$: MOV DR3INT+4,DR3INT
- > TR <--- or here ?
- ..or here..
- >12$: et cetera ad nauseum
-
- I'd guess that this is an interupt routine for a DR11-B DMA parrallel
- interface, but the manuals are buried.
-
- >My intuitive guess is that it ends up at 'TST ADCO',
- >but the manual seems to be telling me it branches to
- >the indicated address.
- Trust the manual ;-)
-
- >
- >While you're here, does the 'MOV' instruction at 11$ really move
- >the label 'DR3INT' to the same address as 10$? Why is the
- >'BR 20$+2' there then?
- The MOV gets the data "br 20$+2".
-
- >What does 'TR' do? I can't find it in the instruction set
- >or the macro language reference manual.
-
- Probably a macro written by the code developers.
-
- >Thanks for the help.
- >--
- >__________________________________________________________
- >Bill Morrow voice: (403) 220-6275
- >Clinical Neurosciences fax: (403) 283-4740
- >University of Calgary e-mail: morrow@cns.ucalgary.ca
-
- Good luck with it,
-
- Carl Zwanzig
- zbang@access.digex.com
-
-