📄 dsp_tl16c550.asm
字号:
.include "mmrg.inc"
; .include "SUBADDR.asm"
.include "data.inc"
.include "subfunction.inc"
;define macro
.include "subfunction2.inc"
;define macro
.include "init_54x.inc"
;define the initial value of cpu and peripheral registers
.include "TL16C550C.inc"
;Definition of TL16C550C
; .include "Address_peripheral.inc"
;define the peripheral address
.ref UART_ISR
STACK .usect "STACK" ,20H
receive .usect "receive",8
.ref transmit
.def CodeStart
.sect ".text"
CodeStart: STM #STACK+20H,SP
INIT_CPU
RSBX XF
NOP
NOP
NOP
;LD #04H,DP
NOP
NOP
NOP
INIT_TL16C550
RPT #40
NOP
LD #0,A
LOOP: NOP
NOP
B LOOP
NOP
NOP
NOP
NOP
NOP
UART_ISR:
;LD #00H,A
;STL A,@IER
;PORTW IER,0001H
;RPT #300
;NOP
SSS:
NOP
NOP
PORTR 0000h , AR4
;RPT #30
;NOP
DELAY
B SSS
PSHM ST0 ;Push ST0 stack
PSHM ST1 ;Push ST1 stack
;PORTR 8002h , @IIR
;RPT #30
;NOP
POPM ST1
POPM ST0
NOP
NOP
RETE
NOP
NOP
NOP
.end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -