⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 template.asm

📁 主要是8051源代码
💻 ASM
字号:
;  [FileName] - [Program Description]
;
;  [Detailed Description of Application]
;
;  [Author]
;
;  Started: [Date]
;  Updated: [Date] - [Description]
;
;  Hardware Notes:
;  [Microcontroller Part Number]
;  [Operating Speed/Source]
;  [Reset Source]
;  [Pin Connections]

;  Include Files
[Include FileName.Ext]

;  Variable Declarations
;  [Bank Register Functions]
[Variable_Name] EQU [Address]   ;  [Variable Description]

;  Constant Declarations
[Constant_Name EQU Value]       ;  [Constant Description]

;  Macro Declarations
[MACRO LABEL Parameters]        ;  [Macro Comments]


;  Mainline
 org 0                          ;  Execution Starts Here
  ajmp   MainLine

 org 003h                       ;  _Int0 Pin Interrupt Handler
_Int0:
  [Put in _Int0 Handler]

 org 00Bh                       ;  Timer0 Pin Interrupt Handler
Tmr0:
  [Put in Tmr0 Handler]

 org 013h                       ;  _Int1 Pin Interrupt Handler
_Int1:
  [Put in _Int1 Handler]

 org 01Bh                       ;  Timer1 Interrupt Handler
Trm1:
  [Put in Tmr1 Handler]

 org 023h                       ;  Serial Port Interrupt Handler
SP:
  [Put in Serial Port Handler]


MainLine:                       ;  Mainline Code

  [Variable Initialization]

  [Put in Application Code]


;  Subroutines

  [Put in Subroutine Code]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -