程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> 關於C語言 >> 修改默認的BANK-SWITCHING ROUTINE

修改默認的BANK-SWITCHING ROUTINE

編輯:關於C語言

MODIFYING THE DEFAULT BANK-SWITCHING ROUTINE

The default bank-switching code is available in the supplied assembler language source

file iar_banked_code_support.s51, which you can find in the directory

8051\src\lib.

The bank-switching routine is based on an SFR port being used for the bank switching.

By default P1is used. The SFR port is defined inthe linker command file by the line:

-D?CBANK=PORTADDRESS

As long as you use this solution, the only thing you must do is to define the appropriate

SFR port address.

After you have modified the file, reassemble it and replace the object module in the

runtime library you are using. Simply include it in your application project and it will

be used instead of the standard module in the library.


  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved