Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rtech.ARPA Path: utzoo!utcs!lsuc!pesnta!hplabs!amdahl!rtech!shelby From: shelby@rtech.ARPA (Shelby Thornton) Newsgroups: net.micro.68k Subject: Re: strange instruction. Message-ID: <150@rtech.ARPA> Date: Thu, 14-Feb-85 19:53:43 EST Article-I.D.: rtech.150 Posted: Thu Feb 14 19:53:43 1985 Date-Received: Sun, 17-Feb-85 06:53:47 EST References: <26@cvl.UUCP> Distribution: net Organization: Relational Technology, Berkeley CA Lines: 16 > Does anyone here *KNOW* what the 68K will do when confronted with the > following instruction? > > move.w (A4)+,(A4)+ > This instruction will take the contents of the address in A4 and duplicate it at the contents of A4+1. For example, if A4 points to the string "abcd", after this instruction is executed, the string will be "abab". To make sure I was correct I wrote a simple test case and it did exactly this. Shelby Thornton Relational Technology