home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ans.net!cmcl2!panix!jwp
- From: uupsi!njin!pdaxs.techbook.com!jmichael (Jesse Michael)
- Subject: Re: problem with movea.l
- Sender: jwp@panix.com (JongWoo Park)
- Message-ID: <1992Aug28.024446.2322@panix.com>
- Date: Mon, 24 Aug 1992 10:24:41 GMT
- Organization: Portland Public Access sponsored by TECHbooks Bookstore
- Lines: 72
-
- > Huh? movea is just an instance of more general move instruction.
- > I think most commercial assembler will "convert"
- > move <something>,An
- >
- > to
- >
- > movea <something>,An
- >
-
- Actually, a move <something>,An _is_ a movea <something>,An.
-
- Here's the coding for a move.l <something>,<somethingelse>
-
- %0010 xxx xxx xxx xxx
- ^ ^ ^ ^ ^
- | | | | |
- | | | | source register
- | | | source mode
- | | destination mode
- | destination register
- opcode
-
- Here are the modes and register values--
- Addressing mode mode register syntax
- Data reg. direct 000 (number) Dn
- Address reg. direct 001 (number) An
- Address reg. indirect 010 (number) (An)
- Address reg. indirect w/ postincre. 011 (number) (An)+
- Address reg. indirect w/ predecrem. 100 (number) -(An)
- Address reg. indirect w/ displacem. 101 (number) d(An)
- Address reg. indirect w/ index 110 (number) d(An,Xi)
- Absolute short address 111 000 xxx.W
- Absolute long address 111 001 xxx.L
- Program conter w/ displacement 111 010 d(PC)
- Program conter w/ index 111 011 d(PC,Xi)
- Immediate data 111 100 #xxx
- Status register 111 100 SR or CCR
-
- * Immediate data may only be used for a source operand, and the status
- register may only be used for a destination operand.
-
- Using those, here is a move.l (a5)+,a0
-
- %0010 000 001 011 101
-
- And here's the coding for a movea.l <something>,An
-
- %0010 xxx 001 xxx xxx
- reg
- mode
- mode
- reg
- opcode
-
- The only difference is that a movea must move to a address register. (and
- movea.b is illegal)
-
- Since I've started writing a disassembler, I've become more interested in
- this stuff... :)
-
- I don't have write access to usenet yet, or I would have posted this in
- the newsgroup instead of mail... Oh well.
-
- -Jesse
-
- ---
- jmichael@pdaxs.techbook.com (Jesse Michael) (Public Access User)
- pdaxs gives free access to news & mail. (503) 644-8135 - 1200/2400, N81
- Send to info@techbook.com for more information.
- Public access users are <NOT> affiliated with TECHbooks.
-
-
-