欢迎来到天天文库
浏览记录
ID:56698040
大小:325.50 KB
页数:31页
时间:2020-07-05
《屏幕显示代码.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、###STARTUP.51:$NOMOD51;------------------------------------------------------------------------------;ThisfileispartoftheC51Compilerpackage;Copyright(c)1988-2005KeilElektronikGmbHandKeilSoftware,Inc.;Version8.01;;***<<>>***;---------------------------------------
2、---------------------------------------;STARTUP.A51:Thiscodeisexecutedafterprocessorreset.;;TotranslatethisfileuseA51withthefollowinginvocation:;;A51STARTUP.A51;;TolinkthemodifiedSTARTUP.OBJfiletoyourapplicationusethefollowing;Lx51invocation:;;Lx51yourobjectfilelist,STARTUP.OBJcontrols;;------------
3、------------------------------------------------------------------;;User-definedPower-OnInitializationofMemory;;WiththefollowingEQUstatementstheinitializationofmemory;atprocessorresetcanbedefined:;;IDATALEN:IDATAmemorysize<0x0-0x100>;Note:Theabsolutestart-addressofIDATAmemoryisalways0;Th
4、eIDATAspaceoverlapsphysicallytheDATAandBITareas.IDATALENEQU80H;;XDATASTART:XDATAmemorystartaddress<0x0-0xFFFF>;TheabsolutestartaddressofXDATAmemoryXDATASTARTEQU0;;XDATALEN:XDATAmemorysize<0x0-0xFFFF>;ThelengthofXDATAmemoryinbytes.XDATALENEQU0;;PDATASTART:PDATAmemorystartaddress<0x0-0x
5、FFFF>;TheabsolutestartaddressofPDATAmemoryPDATASTARTEQU0H;;PDATALEN:PDATAmemorysize<0x0-0xFF>;ThelengthofPDATAmemoryinbytes.PDATALENEQU0H;;;------------------------------------------------------------------------------;;ReentrantStackInitialization;;ThefollowingEQUstatementsdefinethe
6、stackpointerforreentrant;functionsandinitializedit:;;StackSpaceforreentrantfunctionsintheSMALLmodel.;IBPSTACK:EnableSMALLmodelreentrantstack;StackspaceforreentrantfunctionsintheSMALLmodel.IBPSTACKEQU0;setto1ifsmallreentrantisused.;IBPSTACKTOP:EndaddressofSMALLmodelstack<0x0-0xFF>;Sett
IBPSTACK:EnableSMALLmodelreentrantstack;StackspaceforreentrantfunctionsintheSMALLmodel.IBPSTACKEQU0;setto1ifsmallreentrantisused.;IBPSTACKTOP:EndaddressofSMALLmodelstack<0x0-0xFF>;Sett
7、hetopofthestacktothehighestlocation.IBPSTACKTOPEQU0xFF+1;default0FFH+1;;;StackSpaceforreentrantfunctionsintheLARGEmodel.;XBPSTACK:EnableLARGEmodelreentrantstack;Stackspaceforreentrantfunc
XBPSTACK:EnableLARGEmodelreentrantstack;Stackspaceforreentrantfunc
此文档下载收益归作者所有