09.07.2015 Views

mitsubishi - Al Kossow's Bitsavers

mitsubishi - Al Kossow's Bitsavers

mitsubishi - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MITSUBISHI MICROCOMPUTERSMELPS 8·48 MICROCOMPUTERSFUNCTION OF MELPS 8-48 MICROCOMPUTERSMACHINE INSTRUCTIONS'S TypeMnemonicMOV A. ;i:nI nstruction code0706 Os 04 030201 Do0 0 1 0 0 0 1 1"7"8"5"4 "3"2"'"0Hexadecimal23ID~ Uco ~2 ,2 (A)~nFunctionEffectedcarryQ)0 AO 0zDescriptionTransfers data n to register A.MOV A. PSW1 1 0 0 0 1 1 1C7(A)~(PSW)Transfers the contents of'the program statusword to register A.MOV A. Rr1 1 1 1 1 r 2 r,r OF8+(A)~(Rr)r= 0 - 7Transfers the contents of register Rr toregisterA.MOV A. @Rr1 1 1 1 0 0 oroFO+(A)~(M(Rr»r=O-lTransfers the contents of memory location,of the current page, whose address is in registerRr to register A.MOV PSW. A1 1 0 1 0 1 1 107(PSW)~(A)(0)~(A7), (AO)~(A6)Transfers the contents of register A to theprogram status word.MOV Rr. A1 0 1 0 1 r 2 r,r OA8+(Rr)~(A)r=0-7Transfers the contents of register A to registerRr.MOV Rr. ;i:n1 0 1. 1 1 r2 r, ro"7"11"5"4 "3"2"'"0B8+(Rr)~nr=0-7Transfers data n to register R r .J Q;MOV @Rr. A~.=MOV @Rr. #nMOVP A. @A1 0 1 0 0 0 oro1 0 1 1 0 0 Oro"7"11"5"4 "3"2"'"01 0 1 0 0 0 1 1AO+BO+A3(M(Rr»~(A)r=O-l(M(Rr»~nr=O-l(A)~(M(A»Transfers the contents of register A to memorylocatipn, of the current page. whose addressis in register R r.Transfers data n to memory location, of thecurrent page, whose address is in register Rr.Transfers the data of memory location, ofthe current page, whose address is in registerA to register A.MOVP3 A. @A1 1 1 0 0 0 1 1E3(A)~(M(page 3, A»Transfers the data of memory location, ofpage 3, whose address is in register A toregister A.MOVX @Rr. A10 0 1 0 0 oro90+(Mx(Rr»~(A)-r=O-lTransfers the contents of register A to memorylocatior" of the current page, whoseaddress is in register Rr.MOVX A. i!>Rr1 0 0 0 0 0 oro80+(A)~(Mx(Rr»r=O-lTransfers the contents of memory location,of the current page, whose address is in registerRr to register A.XCH A. Rr0 0 1 0 1 r 2 r,r O28+(A)~(Rr)r=0-7Exchanges the contents of register Rr withthe contents of register A.Ju~XCH A. @RrXCHD A. @RrADD A. #nADD A. RrADD A. (aRrADOC A. ;i:nAODC A. RrADDC A. @Rr0 0 1 0 0 0 oro0 0 1 1 0 0 oro0 0 0 0 0 0 1 1"7"11"5"4 "3"2"'"00 1 1 0 1 r 2 r,r O0 1 1 0 0 0 oro0 0 0 1 0 0 1 1"7"11"5"4 "3"2"'"00 1 1 1 1 r 2 r,r O0 1 1 1 0 0 oro20+30+0388+60+1378+70+(A)~(M(Rr»r=O-l(Ao-A3)+----+(M (Rro-Rr3»r=O-l(A)~(A)+n(A)~(A)+(Rr)r=0-7(A)~(A)+(M(Rr»r=O-l(A) ~ (A)+ n+(O)(A) ~ (A)+(Rr)+(O)r=0-7(A) ~ (A)+(M (Rr» + (0)r=O-lExchanges the contents of memory location,of the current page, whose address is in registerRr with the contents of register A.Exchanges the contents of the low-order fourbits of register A with the low-order fourbits of memory location, of the currentpage, whose address is in register R r.Adds data n to the contents of register Aand sets the carry flags to0 0 11 if t here is anoverflow otherwise resets the carry flagsto O. The resu It is stored in register A.Adds the contents of register R r to the con-0 0 1tents of register A and sets the carry flags to 1 ifthere is an overflow otherwise resets,the'carryflags to O. The result is stored in register A.Adds the contents ot register A and the contentsof memory location, of the current page,0 0 1 whose address is in register A and sets the carryflags to 1 if there is an overflow otherwise resetsthe carry flags toO.Theresult is stored in registerA.Adds the carry and data n to the contents of0 0 1register A and sets the carry flags to 1 ifthere is an overflow otherwise resets thecarry flags to O. The result is stored in registerA.Adds the carry. and the contents of registerRr to the contents of register A and sets the0 0 1 carry f lags to 1 if there is an overflowotherwise resets the carry flags to O. Theresult is stored in register A.Adds the carry and the contents ot memorylocation, of the current page, whose address is0 0 1 in register R r to the contents of register A andsets the carry flags.to 1 if there is an (lverflowotherwise resets thecarryflagstoO. The resultis stored in register A.4-14• MITSU. BISHI..... ELECTRIC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!