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

📄 main.asm

📁 自制单片机实验板.rar
💻 ASM
字号:
;*****************************************************
;
;   This programme is for mobile setup Ver3.0 beta
;            The main control programe
;This programme must be run in 12MHz standard settings
;               Designer: Mr.Koii
;           Copyright 2002 koiistudio
;     2002.11.18 at Changsha. H.N. P.R.China.
;
;*****************************************************

;*****************************************************
;参数定义
;*****************************************************

digital_bit             equ     08h                     ;显示位
date_data               equ     0c0h                    ;时钟数据首地址
keys_byte               equ     0dh                     ;按键字节

;*****************************************************
;主程序
;*****************************************************

                        org	0000h
                        sjmp	start

                        org     0013h
                        ljmp    keys_int

                        org	0030h
start:                  mov     p0,#0
                        mov     p1,#0fh
                        mov     p2,#0
                        mov     p3,#0ffh

                        mov	sp,#70h                     ;堆栈地址
                        mov     r0,#0feh                    ;Clear the ram
                        mov     r1,#2
                        clr     a
main_clear0:            mov     @r1,a
                        inc     r1
                        djnz    r0,main_clear0

                        mov     09h,#76h
                        mov     0ah,#54h
                        mov     0bh,#32h
                        mov     0ch,#10h

                        mov     digital_bit,#1
                        setb    ex1
                        setb    ea
                        lcall   beep1
main_wait:              lcall   digital
                        mov     a,keys_byte
                        cjne    a,#0,keysmanagement
                        sjmp    main_wait

keysmanagement:         lcall   keys_management
                        mov     keys_byte,#0
                        sjmp    main_wait

;*****************************************************
;子程序文件载入
;*****************************************************

                        include "beep.asm"

                        include "keysmanagement.asm"

                        include "timer.asm"

                        include "display.asm"

end

⌨️ 快捷键说明

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