;音乐生日快乐的播放numtimequ20hEQUeiequ21hEQUweiequ22hEQUnledequ23hEQU000hORGpstartJMPg00bhjORGtim0oJMP100hORGart:;JBP3.7,$;检测播放按键是否按下movtmod,#00000001bMOVmovie,#10000010bMOVmovnumtim,#01hstartMOVov30h,#00hnextMOVva,30hmovMOVr,#tableMOVovca,@a+dptrmovr2,ajzeMOVanlaJZ0fhmovr5,amovaMOVswapMOVanla,#0fhjnzsingclrtJNZjmpd1sing:decaJMPmov22h,DECrlaMOVmovdptr,#table1MOVmovca,@a+dptrmovth0,amovMOV,amovMOV2hrlaMOVincamovca,@INCptrmovtl0,amovMOV,asetbMOV0d1:lcalldelayinc30hjmpneINCend0:clrJMPjmpstart0tim0:puJMPaccpushPUSHmovPUSH2PSWMOVth0,21hMOVp1.6;由该口输出音频数据poppswpopaccPOPrPSWdPOPy:movr7,#02hd2:movr4,#1MOVd3:movr3,#MOVdjnzr3,MOVdjnzr4,d3djnzr7,d2djnzr5,delayrettable1:RET;音乐码表dw64260,64400,64524,64580DWdw64684,64777,64820,64898DWdw64968,65030,65058,65110DWdw65157,65178,65217table:dDW82h,01h,81h,94h,84hDB0b4h,0a4h,04hdb82hDB1h,81h,94h,84hDB0c4h,0b4h,04hdb8DB,01h,81h,0f4h,0d4hDBdb0b4h,0a4h,94hdb0e2DB01h,0e1h,0d4h,0b4hDBdb0c4h,0b4h,04hdb8DB,01h,81h,94h,84hDB0b4h,0a4h,04hdb82hDB1h,81h,94h,84hDB0c4h,0b4h,04hdb8DB,01h,81h,0f4h,0d4hDBdb0b4h,0a4h,94hdb0e2DB01h,0e1h,0d4h,0b4hDBdb0c4h,0b4h,04hdb00DBTABLE2:DB0C0H,0F9H,DB4H,0B0H,99H,92H,8DB,0F8H,80H,90HendEND我只有生日快乐的程序,,从我这个程序你了解了原理,你就可以随意搞了,玩熟悉了就简单了。
龙小翠2019-12-21 18:56:10