Path: utzoo!mnetor!uunet!husc6!uwvax!geowhiz!scott From: scott@geowhiz.UUCP (Scott Kempf) Newsgroups: comp.sys.apple Subject: Re: Block moves Message-ID: <768@geowhiz.UUCP> Date: 18 Apr 88 20:10:45 GMT References: <8804172225.aa09835@SMOKE.BRL.ARPA> Reply-To: scott@geowhiz.UUCP (Scott Kempf) Organization: University of Wisconsin, Department of Geology and Geophysics Lines: 42 In article <8804172225.aa09835@SMOKE.BRL.ARPA> STEIN@UCONNVM.BITNET writes: >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. The sourcebank and destbank the upper 8 bits of a 24 bit addresses of the source and destination blocks. (In the 65816 a bank is always 64K) If you want to move HGR page1 onto page2 you would do (in "normal" memory): LDX 2000 LDY 4000 LDA 1FFF MVP 0,0 To copy page2 text the way Alternate Display Mode does (might do): LDX 800 LDY 800 LDA 3FF MVP 0,E1 Scott >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 _______________________________________________________________________________ Scott Kempf Blue itself teaches us blue. -Bill Ranson MAIL: 1302 Rutledge St., Madison, WI 53703 PHONE: (608) 255-6205 (home) UUCP: {seismo, topaz, harvard, ihnp4}!uwvax!geowhiz!scott ARPA: geowhiz!scott@spool.wisc.edu PHONE: (608) 262-6154 (work) BITNET: scott%geowhiz.uucp%spool.wisc.edu@wiscvm.bitnet