全文预览

汇编语言 两只老虎 实验报告

上传者:火锅鸡 |  格式:doc  |  页数:18 |  大小:0KB

文档介绍
--------------------------------------------------------------------------------------------------------------------SONGPROCMOVAL,0B6HOUT43H,AL;选择计数器2LEASI,MUSICLEADI,TIMEMOVCX,N;循环次数SONG2:PUSHCXPUSHDIMOVDI,[SI]MOVDX,12HMOVAX,34DCHDIVDI;设置计数初值OUT42H,ALMOVAL,AHOUT42H,ALINAL,61HORAL,3OUT61H,AL;打开扬声器POPDIMOVCX,20000CALLDELAY;调用延时子程序INAL,61HANDAL,0FCHOUT61H,AL;关闭扬声器ADDSI,2ADDDI,2POPCXLOOPSONG2SONGENDP;---------------------------------------------------------------------------------------------------------------------;---------------------------------------------------------------------------------------------------------------------;子程序DELAY;延时子程序;---------------------------------------------------------------------------------------------------------------------DELAYPROCPUSHAXPUSHBXMOVBX,[DI]

收藏

分享

举报
下载此文档