Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!UCONNVM.BITNET!STEIN From: STEIN@UCONNVM.BITNET Newsgroups: comp.sys.apple Subject: Block moves Message-ID: <8804172225.aa09835@SMOKE.BRL.ARPA> Date: 18 Apr 88 03:15:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 35 Can someone give me an example using a block move (MVP or MVN) on the 65816? I know that you put the starting address (lower 16 bits) in X, destination address (lower 16 bits) in Y, the # of blocks less 1 in the accumulator and then include the instruction mvp sourcebank,destbank but I'm not certain how to put the source and destination banks in there. My guess is that if I have statements such as: source ds 500 dest ds 500 somewhere in my program and want to move say 25 bytes starting at source+60 to a location starting at dest+90 I can do something like the following: clc lda #source adc #60 tax clc lda #dest adc #90 tay lda #25 mvp source,dest Will that work? ARPA: stein%uconnvm.bitnet@mitvma.mit.edu Alan H. Stein BITNET: STEIN@UCONNVM University of Connecticut UUCP: ...ihnp4!psuvax1!UCONNVM.BITNET!STEIN at Waterbury CompuServe: 71545,1500 Genie: ah.stein Department of Mathematics