资源描述:
《8086汇编语言实现16_16点阵输出6中字体变换》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、8086汇编语言实现16*16点阵输出汉字以及6种变化所使用实验板,实验板上有地址所以在程序中不再体现,:程序:STACKedSEGMENTSTACKSTADW1000DUP(?)TOPEQUSIZESTASTACKedENDS;堆栈段定义DATASEGMENTTABLEDB0FCH,3FH,0FCH,3FH,80H,01H,80H,01H,0F8H,1FH,0F8H,1FH,80H,01H,80H,01H,80H,01H,0C0H,03H,60H,06H,30H,0CH,18H,18H,0CH,30H,06H,60H,03H,0C0HDB0CH,02H,18H,02H,0B0H,
2、0FH,20H,0AH,0C4H,7FH,1CH,0AH,0B8H,0FH,20H,02H,00H,02H,0C0H,1FH,20H,02H,30H,02H,0F0H,3FH,18H,02H,0CH,02H,0CH,02HDB00H,00H,80H,01H,80H,01H,80H,01H,0FCH,3FH,0FCH,3FH,0C0H,03H,0C0H,03H,60H,06H,60H,0CH,30H,1CH,18H,18H,18H,18H,0CH,30H,06H,60H,06H,60HDB48H,0CH,48H,06H,90H,03H,0FCH,1FH,04H,10H,04H,10H
3、,0E0H,03H,00H,01H,80H,00H,80H,00H,0F8H,0FH,80H,00H,80H,00H,0A0H,00H,0C0H,00H,80H,00HTEMPDB32DUP(00H)DXX_TDW?P2_COUNTDB?P2_COUNT1DB?DATAENDS;数据段定义,其中TABLEA表中输入的是“天津大学”四个字的字体模型,用于在LED上输出,字模设计由个人自己设计,本实验以“天津大学”4个字为例CODESEGMENTASSUMECS:CODE,DS:DATA,SS:STACKedSTART:MOVAX,DATAMOVDS,AXMOVAX,STACKedMO
4、VSS,AXMOVSP,TOP;程序段地址的传输;---------------------------常规变换----------------------------------MOVBX,OFFSETTABLE;BX可以用来向此子程序传输显示值地址MOVSI,04FFH;字体切换时间CALLDISPLAYADDBX,20H;BX可以用来向此子程序传输显示值地址MOVSI,04FFH;字体切换时间CALLDISPLAYADDBX,20H;BX可以用来向此子程序传输显示值地址MOVSI,04FFH;字体切换时间CALLDISPLAYADDBX,20H;BX可以用来向此子程序传输显示
5、值地MOVSI,04FFH;字体切换时间CALLDISPLAY;---------------------------输出阴文----------------------------------MOVBX,OFFSETTABLE;BX可以用来向此子程序传输显示值地址MOVSI,04FFH;字体切换时间CALLDISPLAY2ADDBX,20H;BX可以用来向此子程序传输显示值地址MOVSI,04FFH;字体切换时间CALLDISPLAY2ADDBX,20H;BX可以用来向此子程序传输显示值地址MOVSI,04FFH;字体切换时间CALLDISPLAY2ADDBX,20H;BX可以用
6、来向此子程序传输显示值地MOVSI,04FFH;字体切换时间CALLDISPLAY2;----------------------------向上滑行----------------------------------MOVBX,OFFSETTABLE;BX可以用来向此子程序传输显示值地址MOVCX,0000HMOVDX,0000HC2_DELAY:INCDXMOVSI,008FHCALLDISPLAYCMPDX,0009H;调节控制第123个字的环JNAC2_DELAYSUBBX,02HAGAIN:ADDBX,02HMOVSI,008FH;调整控制上升速度CALLDISPLAYA
7、DDCL,01HCMPCL,10HJNAC2INCCHMOVCL,00HMOVDX,0000HC_DELAY:INCDXCALLDISPLAYCMPDX,0009H;延时循环JNAC_DELAYSUBBX,02HC2:CMPCH,02HJNAAGAIN;--------------------------左右两边滑行消失-------------------------------MOVBX,OFFSETTABLE;BX可以用来向此子程序传输显示值地址MOVSI,0C