?? 2ms6m.txt
字號:
org 0000h ;t0中斷矢量地址
ajmp start
org 000bh ;主程序入口
ajmp int_1
org 0030h
mov tmod,#10h ;寫控制字
mov th1,0feh ;寫定時常數
mov tl1,0ch
setb tr1 ;啟動中斷t1
setb et1 ;允許中斷t1
setb ea ;開放cpu中斷
ajmp $
org 01234h ; 中斷服務程序
int_1:mov th1,#f0h ;重寫定時常數
mov tl1,#0ch
cpl p1.0 ;p1。0變反輸出
reti ;中斷返回
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -