所需E币: 4
时间: 2019-12-24 19:13
大小: 206.18KB
Whenmigratingassemblylanguageprogramsfromonefamilyofmicrocontrollerstoanother,thefirstquestionisalmostalways:“What’stheequivalentopcode?”Someoperations,likeadditionandsubtraction,areself-evidentandpracticallyuniversal.Otherinstructionsmayhavesomesubtledifferencesinsyntaxorspellingthatmakedirectconversionsabittrickier.Occasionally,someinstructionssimplydon’thaveadirectequivalentinthetargetset,oranequivalentexistsbutisexplainedindifferentterms.Anotherquestionthatarisesisthatofaddressingmodes.Typically,DirectandIndirectAddressingmodesarestandardinallarchitectures.However,theytendtobedifferentinlimitationsandfeatureset.AN880Convertingfrom8051toMicrochipAssembler:AQuickReferenceItisimportanttorememberthatthisreferencelistisAuthor:GaurangKavaiyaMicrochipTechnologyInc.onlyastartingpointforcodeconversion.Thereareseveralconsiderationstokeepinmindwhenmovingcodefrom8-bit8051devicestoPICmicrodevices:1.Thebasicprocessorarchitectureissignificant……