1. 首页
  2. 课程学习
  3. 嵌入式
  4. 从8051到Microchip的汇编转换:快速参考

从8051到Microchip的汇编转换:快速参考

上传者: 2022-10-22 18:16:33上传 PDF文件 206.18 KB 热度 6次

Whenmigratingassemblylanguageprogramsfrom

onefamilyofmicrocontrollerstoanother,thefirst

questionisalmostalways:“What’stheequivalent

opcode?”Someoperations,likeadditionand

subtraction,areself-evidentandpracticallyuniversal.

Otherinstructionsmayhavesomesubtledifferencesin

syntaxorspellingthatmakedirectconversionsabit

trickier.Occasionally,someinstructionssimplydon’t

haveadirectequivalentinthetargetset,oran

equivalentexistsbutisexplainedindifferentterms.

Anotherquestionthatarisesisthatofaddressing

modes.Typically,DirectandIndirectAddressing

modesarestandardinallarchitectures.However,they

tendtobedifferentinlimitationsandfeatureset.AN880Convertingfrom8051toMicrochipAssembler:AQuickReferenceItisimportanttorememberthatthisreferencelistisAuthor:GaurangKavaiyaMicrochipTechnologyInc.onlyastartingpointforcodeconversion.Thereareseveralconsiderationstokeepinmindwhenmovingcodefrom8-bit8051devicestoPICmicrodevices:1.Thebasicprocessorarchitectureissignificant

用户评论