variable.asm

来自「ST7 Software LCD driver」· 汇编 代码 · 共 71 行

ASM
71
字号
st7/

;************************************************************************ 
; TITLE:                VARIABLE.ASM
; DESCRIPTION:          Software LCD driver
;
;                     
;************************************************************************

        TITLE    "variable.asm"           
                                        ; this title will appear on each
                                        ; page of the listing file
        MOTOROLA                        ; this directive forces the Motorola 
                                        ; format for the assembly (default)
;***********************************************************************



;***********************************************************************
;       Variables, constants defined and referenced locally
;       You can define your own values for a local reference here
;***********************************************************************

;************************************************************************
;       Public variables, constants   (defined here)
;************************************************************************
;variables

        BYTES
        
        segment 'ram0'                
.cpt1   DS.B    1
.cpt2   DS.B    1
.cpt3   DS.B    1

;*******LCD control register*******
; one LCD period is divided in 4 time segments: oc1_1, oc2_1, oc1_2, oc2_2. The lcdcr first
; bit is used to point the next segment. Getting an ouput compare 1 interrupt the program has
; to choose between oc1_1 and oc1_2. If lcdcr=0 oc1_1 will be choosen (oc1_2 if lcdcr=1).
; Getting an ouput compare 1 interrupt the program has to choose between oc1_1 and oc1_2.
; If lcdcr=0 oc1_1 will be choosen (oc1_2 if lcdcr=1).

.lcdcr  DS.B    1
.segA1  DS.B    1
.segA2  DS.B    1
.segA3  DS.B    1
.segA4  DS.B    1
.segB1  DS.B    1
.segB2  DS.B    1
.segB3  DS.B    1
.segB4  DS.B    1
.segD1  DS.B    1
.segD2  DS.B    1
.segD3  DS.B    1
.segD4  DS.B    1
.segF1  DS.B    1
.segF2  DS.B    1
.segF3  DS.B    1
.segF4  DS.B    1 
.segE1  DS.B    1
.segE2  DS.B    1
.segE3  DS.B    1
.segE4  DS.B    1

.var 	DS.B	1
 
         WORDS          


        END

⌨️ 快捷键说明

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