资源描述:
《freescale hcs08单片机原理及应用-指令集汇总》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、FreescaleHCS08单片机原理及应用表A-1HCS08指令集汇总(Sheet1of7)EffectonCCR机器码(1)寻址访问指令格式操作描述操操方式细节VHINZC作作码数总线周期数ADC#opr8iIMMA9ii2ppADCopr8aDIRB9dd3rppADCopr16aEXTC9hhll4prppADCoprx16,XIX2D9eeff4prppAddwithCarryA←(A)+(M)+(C)↕↕–↕↕↕ADCoprx8,XIX1E9ff3rppADC,XIXF93rfpADCprx16,SPSP29ED9eeff5pprppADCoprx8,SPSP19EE9ff4prp
2、pADD#opr8iIMMABIi2ppADDopr8aDIRBBdd3rppADDopr16aEXTCBhhll4prppADDoprx16,XIX2DBeeff4prppAddwithoutCarryA←(A)+(M)↕↕–↕↕↕ADDoprx8,XIX1EBff3rppADD,XIXFB3rfpADDoprx16,SPSP29EDBeeff5pprppADDoprx8,SPSP19EEBff4prppSP←SP+(M)AddImmediateValueAIS#opr8iMissignextended––––––IMMA7ii2pp(Signed)toStackPointertoa16-b
3、itvalueAddImmediateValueH:X←(H:X)+(M)AIX#opr8i(Signed)toIndexRegisterMissignextended––––––IMMAFii2pp(H:X)toa16-bitvalueAND#opr8iIMMA4ii2ppANDopr8aDIRB4dd3rppANDopr16aEXTC4hhll4prppANDoprx16,XIX2D4eeff4prppLogicalANDA←(A)&(M)0––↕↕–ANDoprx8,XIX1E4ff3rppAND,XIXF43rfpANDprx16,SPSP29ED4ee5pprppANDoprx8,S
4、PSP19EE4ffff4prppASLopr8aDIR38dd5rfwppASLAINH481pASLXArithmeticShiftLeftINH581p↕––↕↕↕ASLoprx8,X(SameasLSL)IX168ff5rfwppASL,XIX784rfwpASLoprx8,SPSP19E68ff6prfwppASRopr8aDIR37dd5rfwppASRAINH471pASRXINH571pArithmeticShiftRight↕––↕↕↕ASRoprx8,XIX167ff5rfwppASR,XIX774rfwpASRoprx8,SPSP19E67ff6prfwppBCCrelB
5、ranchifCarryBitClearBranchif(C)=0––––––REL24rr3pppDIR(b0)11dd5rfwppDIR(b1)13dd5rfwppDIR(b2)15dd5rfwppDIR(b3)17dd5rfwppBCLRn,opr8aClearBitninMemoryMn←0––––––DIR(b4)19dd5rfwppDIR(b5)1Bdd5rfwppDIR(b6)1Ddd5rfwppDIR(b7)1Fdd5rfwppBranchifCarryBitSetBCSrelBranchif(C)=1––––––REL25rr3ppp(SameasBLO)BEQrelBran
6、chifEqualBranchif(Z)=1––––––REL27rr3pppBranchifGreaterThanorBranchif(N⊕V)=BGErelEqualTo––––––REL90rr3ppp0(SignedOperands)WaitsForandProcessesBDMEnterActiveBackgroundifBGNDCommandsUntil––––––INH825+fp…pppENBDM=1GO,TRACE1,orTAGGOBranchifGreaterThanBranchif(Z)
7、(N⊕BGTrel––––––REL92rr3ppp(SignedOperands)
8、V)=0HUST&Freescale联合实验室286FreescaleHCS08单片机原理及应用表A-1HCS08指令集汇总(Sheet2of7)EffectonCCR机器码(1)寻址访问指令格式操作描述操操方式细节VHINZC作作码数总线周期数BranchifHalfCarryBitBHCCrelBranchif(H)=0––––––REL28rr3pppClearBranchifHalfCar