从摩托罗拉HC08的转换到Microchip的汇编:快速参考
Whenmigratingassemblylanguageprogramsfrom
onefamilyofmicrocontrollerstoanother,thefirstques-
tionisalmostalways:“What’stheequivalentopcode?”
Someoperations,likeadditionandsubtraction,are
self-evidentandpracticallyuniversal.Otherinstruc-
tionsmayhavesomesubtlechangesinsyntaxorspell-
ingthatmakedirectconversionsabittrickier.
Occasionally,someinstructionssimplydon’thavea
directequivalentinthetargetset,oranequivalent
existsbutisexplainedindifferentterms.TB071ConvertingfromMotorolaHC08toMicrochipAssembler:AQuickReferenceAuthor:RodgerRichey2.BothMotorolaandMicrochipuseadatamem-orythatis8bitswide.Withtheircorearchitec-MicrochipTechnologyInc.ture,MotorolaHC08devicesarealsolimitedtoWhenmigratingassemblylanguageprogramsfrom8-bitwideprogrammemoriesaswell.Microchiponefamilyofmicrocontrollerstoanother,thefirstques-PICmicrodevices,ontheotherhand,havepro-tion