新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 立體旋轉(zhuǎn)LED匯編程序設(shè)計(jì)

立體旋轉(zhuǎn)LED匯編程序設(shè)計(jì)

作者: 時間:2016-11-30 來源:網(wǎng)絡(luò) 收藏
org 00h
jmp cfgorg 03hclr 00hreticfg: ;setb ea;  setb ex0;  setb it0mov dptr,#tabMM00: CLR 00Hmm: mov a,r2movc a,@a+dptrcpl acall hbitmov r4,adeC r2mov a,r2movc a,@a+dptrdec r2cpl acall hbitjb 01h,gr0mov p1,amov p3,r4jmp gr00gr0:mov p2,amov p0,r4gr00:djnz r6,$djnz r6,$;djnz r6,$cjne r2,#0ffh,mmmmov p0,#0ffhmov p1,#0ffhmov p2,#0ffhmov p3,#0ffhjb 0e8h.3,$   ;檢測是否低電平mmm:  jb 0e8h.3,MM00   ;檢測是否低電平j(luò)b 00h,mmsetb 00hmov r2,#0ffhinc dptrinc dptrinc dptrinc dptrmov a,dphcjne a,#tab2/256,e0dmov dptr,#tabcpl 01he0d: jmp mmhbit:  ;這是一個位交換子程序,用來實(shí)現(xiàn)字倒著顯示或者正著顯示,倒著顯示時適合電動機(jī)在上面掛起來安裝的情況。mov c,acc.0mov b.7,cmov c,acc.1mov b.6,cmov c,acc.2mov b.5,cmov c,acc.3mov b.4,cmov c,acc.4mov b.3,cmov c,acc.5mov b.2,cmov c,acc.6mov b.1,cmov c,acc.7mov b.0,cmov a,bretorg 200h;org 300h,下面是顯示的數(shù)據(jù)內(nèi)容,是用本站軟件自動生成的供碼,請自行修改,其中的0000000000數(shù)據(jù)是加進(jìn)去的空白代碼,用來顯示開頭和結(jié)尾的空白;;………………數(shù)據(jù)內(nèi)容省略,請用本站的自動數(shù)碼代碼程序自動生成tab:db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0db 00h,04h,40h,04h,41h,04h,41h,04hdb 41h,04h,41h,0fch,7fh,04h,41h,04hdb 41h,04h,41h,04h,43h,0fch,41h,04hdb 40h,04h,00h,0ch,00h,04h,00h,00hdb 00h,00h,01h,00h,01h,00h,01h,00hdb 01h,00h,01h,00h,01h,00h,01h,00hdb 01h,00h,01h,00h,01h,00h,01h,00hdb 01h,00h,03h,00h,01h,00h,00h,00hdb 00h,00h,00h,00h,1fh,0f0h,12h,20hdb 12h,20h,12h,20h,12h,20h,0ffh,0fchdb 12h,22h,12h,22h,12h,22h,12h,22hdb 1fh,0f2h,00h,02h,00h,0eh,00h,00hdb 00h,80h,00h,80h,40h,80h,40h,80hdb 40h,80h,40h,82h,40h,81h,47h,0fehdb 48h,80h,50h,80h,60h,80h,40h,80hdb 00h,80h,01h,80h,00h,80h,00h,00hdb 10h,04h,1fh,0fch,00h,84h,01h,00hdb 01h,00h,01h,04h,00h,0fch,00h,04hdb 00h,00h,01h,00h,01h,00h,07h,0f8hdb 01h,04h,01h,04h,00h,00h,00h,00hdb 00h,00h,01h,00h,01h,00h,07h,0f8hdb 01h,04h,01h,04h,00h,00h,00h,00hdb 01h,01h,01h,0ffh,00h,85h,01h,04hdb 01h,04h,00h,88h,00h,70h,00h,00hdb 00h,00h,00h,00h,00h,00h,03h,0chdb 03h,0ch,00h,00h,00h,00h,00h,00hdb 00h,00h,00h,06h,00h,18h,00h,60hdb 01h,80h,06h,00h,18h,00h,20h,00hdb 00h,00h,00h,06h,00h,18h,00h,60hdb 01h,80h,06h,00h,18h,00h,20h,00htab1:db 01h,0f0h,01h,0ch,00h,30h,01h,0c0hdb 00h,30h,01h,0ch,01h,0f0h,01h,00hdb 01h,0f0h,01h,0ch,00h,30h,01h,0c0hdb 00h,30h,01h,0ch,01h,0f0h,01h,00hdb 01h,0f0h,01h,0ch,00h,30h,01h,0c0hdb 00h,30h,01h,0ch,01h,0f0h,01h,00hdb 00h,00h,00h,0ch,00h,0ch,00h,00hdb 00h,00h,00h,00h,00h,00h,00h,00hdb 00h,00h,1fh,98h,10h,84h,11h,04hdb 11h,04h,10h,88h,10h,70h,00h,00htab2:end


評論


技術(shù)專區(qū)

關(guān)閉