软件堆栈管理
ThePIC16C5Xhasastackwhichisonly2deep,and,
asaresult,onlytwonestedcallscanbemade(i.e.,only
onecallwithinacallroutine).Ifmorethantwolevelsof
subroutinenestingisrequired,thisapplicationnotecan
beusedtoimplementastackmanagertohandlethe
flowofthecalls.AN527SoftwareStackManagementAuthor:StanD’SouzaIMPLEMENTATIONMicrochipTechnologyInc.Thisapplicationnoteimplementsa5-deepstack,so5nestedcallscanbemadewithoutoverowingthestack.NCALLisdenedasaMACROwhichwillbeINTRODUCTIONusedinsteadofthemnemonicCALL,whenaThePIC16C5Xhasastackwhichisonly2deep,and,subroutinecallismade.
用户评论