prog1.asm
来自「包括了各种常用的8051单片机的程序」· 汇编 代码 · 共 21 行
ASM
21 行
; PROG1 - First Program, Turn on an LED at at P1.0
;
; This Application Turns on an LED and Loops forever afterward.
;
; Myke Predko
; 98.01.30
;
; Hardware Notes:
; 80C520 Running at 1 MHz
; P1.0 is the LED (to light, it is pulled down)
; Variable Declarations
; Mainline
org 0 ; Execution Starts Here
clr P1.0 ; Turn on the LED
Loop: ; Loop Here Forever
ajmp Loop
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?