home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.misc:1004 comp.os.vms:20381 comp.os.rsts:91 vmsnet.pdp-11:917
- Newsgroups: comp.os.misc,comp.os.vms,comp.os.rsts,vmsnet.pdp-11
- Path: sparky!uunet!psinntp!ficc!peter
- From: peter@ferranti.com (peter da silva)
- Subject: Re: Help on RT-11 macro language
- Message-ID: <id.U6GW.CIK@ferranti.com>
- Followup-To: comp.os.misc,comp.os.rsts,vmsnet.pdp-11
- Keywords: RT-11, macro
- Organization: Xenix Support, FICC
- References: <93Jan04.223305.29354@acs.ucalgary.ca>
- Date: Tue, 5 Jan 1993 17:45:15 GMT
- Lines: 57
-
- PDP-11 hackers hang around on comp.os.rsts and vmsnet.pdp-11. I've directed
- followups there...
-
- In article <93Jan04.223305.29354@acs.ucalgary.ca> morrow@cns.ucalgary.ca (Bill Morrow) writes:
- > I'm a bit confused by the unconditional branch instruction -
- > where does this code end up after the 'BR 10$+2' step?
-
- All of the following assumes I'm not psychotic:
-
- Two bytes after the label marked "10$".
-
- Assume .=1000 (octal)
-
- Address Data Code
- 1000 0 > DR3INT: 0
- 1002 <branch> > BR 10$+2 <--- branch to where ?
- 1004 <branch> > BR 20$+2
- 1006 <mov> > 10$: MOV #107,DMACSR
- 107
- DMACSR
- 1014 <tst> > TST ADCO <--- here ?
- ADCO
- 1020 <branch> > BEQ 11$
- 1022 <mov> > MOV #113,KWREG
- 113
- KWREG
- 1030 <mov> > 11$: MOV DR3INT+4,DR3INT
- DR3INT+4
- DR3INT
- 1036 > TR <--- or here ?
- > 12$: et cetera ad nauseum
-
- Since the MOV is a three-word instruction, it's branching into the middle
- of the move instruction. Are you sure this isn't some sort of table being
- interpreted as code?
-
- > 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.
-
- I don't see how.
-
- > While you're here, does the 'MOV' instruction at 11$ really move
- > the label 'DR3INT' to the same address as 10$?
-
- No, it moves the BR 20$+1 *instruction* to DR3INT. DEC's assemblers all
- use "MOV <src>,<dst>".
-
- > What does 'TR' do? I can't find it in the instruction set
- > or the macro language reference manual.
-
- I don't know offhand. Maybe a macro.
- --
- Peter da Silva `-_-'
- Ferranti International Controls Corporation 'U`
- Sugar Land, TX 77487-5012 USA
- +1 713 274 5180 "Zure otsoa besarkatu al duzu gaur?"
-