如何设计16X16点阵汇编程序 10
急急急急急啊,16X16点阵的汇编程序应如何来编写啊,哪位大哥知道的但是我现在还不会c语言啊,我先在只会汇编的,请问一下汇编的程序应如何来写。并加以解释。多谢了!...
急急急急急啊,16X16点阵的汇编程序应如何来编写啊,哪位大哥知道的
但是我现在还不会c 语言啊,我 先在 只会汇编的 ,请问一下汇编的程序应如何来写。并加以解释。多谢了! 展开
但是我现在还不会c 语言啊,我 先在 只会汇编的 ,请问一下汇编的程序应如何来写。并加以解释。多谢了! 展开
3个回答
展开全部
xx equ 30h
YY EQU 40H
org 0000h
start:MOV YY,#00
mov a,#00h
mov xx,#128
mov p0,a
anl p2,#00h
mov dptr,#0100h
mov 20h,#00h
l1:mov r1,#3h
l2:mov r6,#16
mov r4,#00h
mov r0,20h
l3:mov a,r4
mov p1,a
inc r4
mov a,r0
movc a,@a+dptr
mov r7,a
mov p0,a
inc r0
mov a,r0
movc a,@a+dptr
mov r7,a
mov p2,a
inc r0
mov r3,#02
d2:mov r5,#0f8h
djnz r5,$
djnz r3,d2
mov a,#00h
mov p0,a
anl p2,#00h
djnz r6,l3
djnz r1,l2
inc dpl
INC DPL
mov a,r7
cjne a,#1bh,bb
jmp start
bb:djnz xx,l1
INC YY
MOV A,YY
N1:CJNE A,#1,N2
LJMP DD
N2:cjne a,#2,N3
LJMP EE
N3:CJNE A,#3,START
LJMP FF
DD:
mov dpl,#0
mov dptr,#0F00H
mov xx,#128
mov a,r7
mov 20h,#00h
cjne a,#1bh,l1
EE:
MOV DPL,#0
MOV DPTR,#1D00H
MOV XX,#128
MOV A,R7
MOV 20H,#00H
CJNE A,#1BH,L1
ff:MOV DPL,#0
MOV DPTR,#2B00H
MOV XX,#128
MOV A,R7
MOV 20H,#00H
CJNE A,#1BH,L1
jmp start
org 0100h
DB 000H,001H,01fH,010H,010H,010H,03fH,010H,008H,002H,018H,030H,024H,042H,001H,000H;
DB 030H,0f8H,000H,080H,080H,080H,0fcH,080H,080H,090H,088H,08cH,086H,084H,000H,000H;;江",0
DB 040H,000H,04FH,0FEH,048H,014H,048H,024H,048H,044H,07FH,084H,048H,004H,048H,004H;
DB 048H,004H,07FH,084H,048H,044H,048H,044H,048H,044H,04FH,0FEH,040H,000H,000H,000H;;西",1
DB 000H,080H,008H,080H,009H,000H,011H,000H,061H,0FFH,003H,052H,003H,052H,0FDH,052H;
DB 005H,052H,009H,052H,009H,052H,051H,052H,021H,0FFH,018H,000H,000H,000H,000H,000H;;省",2
DB 000H,000H,000H,000H,07FH,0FFH,049H,002H,049H,004H,049H,008H,049H,000H,04FH,000H;
DB 049H,0C0H,049H,030H,049H,008H,079H,004H,001H,002H,001H,00FH,000H,000H,000H,000H;;民",3
DB 020H,004H,027H,0FCH,020H,008H,020H,008H,03FH,0F2H,022H,012H,022H,0A2H,023H,004H;
DB 00DH,004H,0F8H,0C8H,048H,030H,008H,0C8H,00FH,004H,008H,006H,008H,004H,000H,000H;;政",4
DB 002H,000H,00CH,040H,008H,040H,048H,040H,03AH,040H,02AH,040H,00AH,042H,08AH,041H;
DB 07AH,0FEH,02BH,040H,00AH,040H,018H,040H,0EAH,040H,04CH,040H,008H,040H,000H,000H;;学",5
DB 010H,040H,011H,080H,016H,000H,0FFH,0FFH,014H,000H,012H,002H,000H,042H,011H,084H;
DB 016H,064H,090H,018H,070H,018H,010H,064H,015H,086H,012H,003H,011H,002H,000H,000H;;校",6
DB 000H,000H,000H,000H,01FH,0F0H,012H,020H,012H,020H,012H,020H,012H,020H,0FFH,0FCH;
DB 012H,022H,012H,022H,012H,022H,012H,022H,01FH,0F2H,000H,002H,000H,00EH,000H,000H;;电",7
DB 000H,080H,000H,080H,040H,080H,040H,080H,040H,080H,040H,082H,040H,081H,047H,0FEH;
DB 048H,080H,050H,080H,060H,080H,040H,080H,000H,080H,001H,080H,000H,080H,000H,000H;;子",8
ORG 0F00H
DB 000H,080H,000H,080H,040H,080H,040H,080H,040H,080H,040H,082H,040H,081H,047H,0FEH;
DB 048H,080H,050H,080H,060H,080H,040H,080H,000H,080H,001H,080H,000H,080H,000H,000H;;子",8
DB 001H,000H,002H,000H,00CH,000H,03FH,0FEH,0E0H,000H,050H,000H,015H,07EH,015H,044H;
DB 095H,044H,075H,044H,055H,044H,015H,044H,015H,07EH,010H,000H,010H,000H,000H,000H;;信",9
DB 000H,000H,000H,004H,000H,01CH,03FH,080H,02AH,0BCH,02AH,082H,06AH,082H,0AAH,0A2H;
DB 02AH,09AH,02AH,082H,02AH,082H,03FH,08EH,000H,000H,000H,010H,000H,00CH,000H,000H;;息",10
DB 010H,080H,010H,082H,011H,001H,0FFH,0FEH,012H,000H,014H,002H,000H,002H,013H,004H;
DB 012H,0C8H,012H,030H,0FEH,030H,012H,048H,013H,084H,012H,006H,010H,004H,000H,000H;;技",11
DB 008H,008H,008H,008H,008H,010H,008H,020H,008H,040H,009H,080H,00AH,000H,0FFH,0FEH;
DB 00AH,000H,009H,000H,048H,080H,028H,060H,008H,030H,008H,018H,008H,010H,000H,000H;;术",12
DB 004H,000H,004H,000H,024H,000H,024H,000H,025H,080H,026H,080H,03CH,090H,0E4H,088H;
DB 024H,094H,024H,0A2H,025H,0C0H,024H,080H,024H,000H,004H,000H,004H,000H,000H,000H;;专",13
DB 000H,004H,008H,004H,006H,004H,001H,0C4H,000H,084H,0FFH,0FCH,000H,004H,000H,004H;
DB 000H,004H,0FFH,0FCH,000H,044H,001H,084H,006H,004H,01CH,00CH,008H,004H,000H,000H;;业",14
DB 000H,010H,000H,010H,01FH,0D0H,014H,090H,094H,090H,074H,090H,054H,090H,01FH,0FFH
DB 014H,090H,034H,090H,0D4H,090H,054H,090H,01FH,0D0H,000H,010H,000H,010H,000H,000H;单",0
DB 000H,001H,000H,002H,000H,00CH,07FH,0F0H,008H,080H,008H,080H,008H,080H,008H,080H
DB 008H,080H,0F8H,080H,008H,080H,008H,0FFH,008H,000H,018H,000H,008H,000H,000H,000H;片",1
ORG 1D00H
DB 000H,001H,000H,002H,000H,00CH,07FH,0F0H,008H,080H,008H,080H,008H,080H,008H,080H
DB 008H,080H,0F8H,080H,008H,080H,008H,0FFH,008H,000H,018H,000H,008H,000H,000H,000H;片",1
DB 010H,020H,010H,0C0H,013H,000H,0FFH,0FFH,012H,000H,011H,082H,010H,00CH,000H,030H
DB 07FH,0C0H,040H,000H,040H,000H,040H,000H,07FH,0FCH,000H,002H,000H,01EH,000H,000H;机",2
DB 000H,004H,040H,004H,041H,004H,041H,004H,041H,004H,041H,004H,041H,004H,07FH,0FCH
DB 041H,004H,041H,004H,041H,004H,041H,004H,0C3H,004H,041H,00CH,000H,004H,000H,000H;王",0
DB 008H,080H,011H,000H,023H,0FEH,0E6H,000H,05CH,004H,008H,004H,043H,0FCH,040H,004H
DB 040H,004H,040H,004H,07FH,0FCH,041H,004H,041H,004H,041H,004H,041H,004H,000H,000H;征",1
DB 002H,010H,022H,010H,022H,020H,022H,020H,022H,040H,022H,07CH,0FEH,092H,023H,012H
DB 023H,022H,022H,022H,026H,042H,02AH,042H,072H,002H,022H,00EH,002H,000H,000H,000H;老",2
DB 000H,002H,03FH,0E4H,000H,008H,000H,070H,0FFH,080H,000H,000H,04FH,0F0H,048H,000H
DB 048H,000H,048H,000H,07FH,0FFH,048H,000H,048H,020H,048H,010H,04FH,0E0H,000H,00H;师",3
DB 001H,000H,002H,000H,00CH,000H,03FH,0FEH,0E1H,000H,041H,004H,021H,004H,021H,004H
DB 021H,004H,03FH,0FCH,041H,004H,041H,004H,041H,004H,041H,004H,001H,004H,000H,000H;任",0
DB 008H,090H,028H,090H,029H,012H,02BH,011H,0FDH,07EH,029H,0A0H,039H,022H,028H,022H
DB 00AH,004H,01FH,004H,0F0H,0C8H,010H,030H,011H,0CCH,01EH,003H,010H,002H,000H,000H;教",1
DB 008H,000H,008H,002H,008H,004H,008H,008H,008H,030H,089H,0C0H,048H,080H,078H,000H
DB 029H,000H,008H,080H,008H,040H,008H,030H,008H,01EH,008H,00CH,008H,000H,000H,000H;六",
ORG 2B00H
DB 008H,000H,008H,002H,008H,004H,008H,008H,008H,030H,089H,0C0H,048H,080H,078H,000H
DB 029H,000H,008H,080H,008H,040H,008H,030H,008H,01EH,008H,00CH,008H,000H,000H,000H;六",2
DB 002H,020H,004H,020H,008H,020H,030H,020H,0C7H,0E0H,044H,020H,044H,020H,044H,020H
DB 07FH,0FFH,044H,020H,044H,020H,044H,020H,044H,020H,040H,020H,000H,020H,000H,01BH;年",3
end
YY EQU 40H
org 0000h
start:MOV YY,#00
mov a,#00h
mov xx,#128
mov p0,a
anl p2,#00h
mov dptr,#0100h
mov 20h,#00h
l1:mov r1,#3h
l2:mov r6,#16
mov r4,#00h
mov r0,20h
l3:mov a,r4
mov p1,a
inc r4
mov a,r0
movc a,@a+dptr
mov r7,a
mov p0,a
inc r0
mov a,r0
movc a,@a+dptr
mov r7,a
mov p2,a
inc r0
mov r3,#02
d2:mov r5,#0f8h
djnz r5,$
djnz r3,d2
mov a,#00h
mov p0,a
anl p2,#00h
djnz r6,l3
djnz r1,l2
inc dpl
INC DPL
mov a,r7
cjne a,#1bh,bb
jmp start
bb:djnz xx,l1
INC YY
MOV A,YY
N1:CJNE A,#1,N2
LJMP DD
N2:cjne a,#2,N3
LJMP EE
N3:CJNE A,#3,START
LJMP FF
DD:
mov dpl,#0
mov dptr,#0F00H
mov xx,#128
mov a,r7
mov 20h,#00h
cjne a,#1bh,l1
EE:
MOV DPL,#0
MOV DPTR,#1D00H
MOV XX,#128
MOV A,R7
MOV 20H,#00H
CJNE A,#1BH,L1
ff:MOV DPL,#0
MOV DPTR,#2B00H
MOV XX,#128
MOV A,R7
MOV 20H,#00H
CJNE A,#1BH,L1
jmp start
org 0100h
DB 000H,001H,01fH,010H,010H,010H,03fH,010H,008H,002H,018H,030H,024H,042H,001H,000H;
DB 030H,0f8H,000H,080H,080H,080H,0fcH,080H,080H,090H,088H,08cH,086H,084H,000H,000H;;江",0
DB 040H,000H,04FH,0FEH,048H,014H,048H,024H,048H,044H,07FH,084H,048H,004H,048H,004H;
DB 048H,004H,07FH,084H,048H,044H,048H,044H,048H,044H,04FH,0FEH,040H,000H,000H,000H;;西",1
DB 000H,080H,008H,080H,009H,000H,011H,000H,061H,0FFH,003H,052H,003H,052H,0FDH,052H;
DB 005H,052H,009H,052H,009H,052H,051H,052H,021H,0FFH,018H,000H,000H,000H,000H,000H;;省",2
DB 000H,000H,000H,000H,07FH,0FFH,049H,002H,049H,004H,049H,008H,049H,000H,04FH,000H;
DB 049H,0C0H,049H,030H,049H,008H,079H,004H,001H,002H,001H,00FH,000H,000H,000H,000H;;民",3
DB 020H,004H,027H,0FCH,020H,008H,020H,008H,03FH,0F2H,022H,012H,022H,0A2H,023H,004H;
DB 00DH,004H,0F8H,0C8H,048H,030H,008H,0C8H,00FH,004H,008H,006H,008H,004H,000H,000H;;政",4
DB 002H,000H,00CH,040H,008H,040H,048H,040H,03AH,040H,02AH,040H,00AH,042H,08AH,041H;
DB 07AH,0FEH,02BH,040H,00AH,040H,018H,040H,0EAH,040H,04CH,040H,008H,040H,000H,000H;;学",5
DB 010H,040H,011H,080H,016H,000H,0FFH,0FFH,014H,000H,012H,002H,000H,042H,011H,084H;
DB 016H,064H,090H,018H,070H,018H,010H,064H,015H,086H,012H,003H,011H,002H,000H,000H;;校",6
DB 000H,000H,000H,000H,01FH,0F0H,012H,020H,012H,020H,012H,020H,012H,020H,0FFH,0FCH;
DB 012H,022H,012H,022H,012H,022H,012H,022H,01FH,0F2H,000H,002H,000H,00EH,000H,000H;;电",7
DB 000H,080H,000H,080H,040H,080H,040H,080H,040H,080H,040H,082H,040H,081H,047H,0FEH;
DB 048H,080H,050H,080H,060H,080H,040H,080H,000H,080H,001H,080H,000H,080H,000H,000H;;子",8
ORG 0F00H
DB 000H,080H,000H,080H,040H,080H,040H,080H,040H,080H,040H,082H,040H,081H,047H,0FEH;
DB 048H,080H,050H,080H,060H,080H,040H,080H,000H,080H,001H,080H,000H,080H,000H,000H;;子",8
DB 001H,000H,002H,000H,00CH,000H,03FH,0FEH,0E0H,000H,050H,000H,015H,07EH,015H,044H;
DB 095H,044H,075H,044H,055H,044H,015H,044H,015H,07EH,010H,000H,010H,000H,000H,000H;;信",9
DB 000H,000H,000H,004H,000H,01CH,03FH,080H,02AH,0BCH,02AH,082H,06AH,082H,0AAH,0A2H;
DB 02AH,09AH,02AH,082H,02AH,082H,03FH,08EH,000H,000H,000H,010H,000H,00CH,000H,000H;;息",10
DB 010H,080H,010H,082H,011H,001H,0FFH,0FEH,012H,000H,014H,002H,000H,002H,013H,004H;
DB 012H,0C8H,012H,030H,0FEH,030H,012H,048H,013H,084H,012H,006H,010H,004H,000H,000H;;技",11
DB 008H,008H,008H,008H,008H,010H,008H,020H,008H,040H,009H,080H,00AH,000H,0FFH,0FEH;
DB 00AH,000H,009H,000H,048H,080H,028H,060H,008H,030H,008H,018H,008H,010H,000H,000H;;术",12
DB 004H,000H,004H,000H,024H,000H,024H,000H,025H,080H,026H,080H,03CH,090H,0E4H,088H;
DB 024H,094H,024H,0A2H,025H,0C0H,024H,080H,024H,000H,004H,000H,004H,000H,000H,000H;;专",13
DB 000H,004H,008H,004H,006H,004H,001H,0C4H,000H,084H,0FFH,0FCH,000H,004H,000H,004H;
DB 000H,004H,0FFH,0FCH,000H,044H,001H,084H,006H,004H,01CH,00CH,008H,004H,000H,000H;;业",14
DB 000H,010H,000H,010H,01FH,0D0H,014H,090H,094H,090H,074H,090H,054H,090H,01FH,0FFH
DB 014H,090H,034H,090H,0D4H,090H,054H,090H,01FH,0D0H,000H,010H,000H,010H,000H,000H;单",0
DB 000H,001H,000H,002H,000H,00CH,07FH,0F0H,008H,080H,008H,080H,008H,080H,008H,080H
DB 008H,080H,0F8H,080H,008H,080H,008H,0FFH,008H,000H,018H,000H,008H,000H,000H,000H;片",1
ORG 1D00H
DB 000H,001H,000H,002H,000H,00CH,07FH,0F0H,008H,080H,008H,080H,008H,080H,008H,080H
DB 008H,080H,0F8H,080H,008H,080H,008H,0FFH,008H,000H,018H,000H,008H,000H,000H,000H;片",1
DB 010H,020H,010H,0C0H,013H,000H,0FFH,0FFH,012H,000H,011H,082H,010H,00CH,000H,030H
DB 07FH,0C0H,040H,000H,040H,000H,040H,000H,07FH,0FCH,000H,002H,000H,01EH,000H,000H;机",2
DB 000H,004H,040H,004H,041H,004H,041H,004H,041H,004H,041H,004H,041H,004H,07FH,0FCH
DB 041H,004H,041H,004H,041H,004H,041H,004H,0C3H,004H,041H,00CH,000H,004H,000H,000H;王",0
DB 008H,080H,011H,000H,023H,0FEH,0E6H,000H,05CH,004H,008H,004H,043H,0FCH,040H,004H
DB 040H,004H,040H,004H,07FH,0FCH,041H,004H,041H,004H,041H,004H,041H,004H,000H,000H;征",1
DB 002H,010H,022H,010H,022H,020H,022H,020H,022H,040H,022H,07CH,0FEH,092H,023H,012H
DB 023H,022H,022H,022H,026H,042H,02AH,042H,072H,002H,022H,00EH,002H,000H,000H,000H;老",2
DB 000H,002H,03FH,0E4H,000H,008H,000H,070H,0FFH,080H,000H,000H,04FH,0F0H,048H,000H
DB 048H,000H,048H,000H,07FH,0FFH,048H,000H,048H,020H,048H,010H,04FH,0E0H,000H,00H;师",3
DB 001H,000H,002H,000H,00CH,000H,03FH,0FEH,0E1H,000H,041H,004H,021H,004H,021H,004H
DB 021H,004H,03FH,0FCH,041H,004H,041H,004H,041H,004H,041H,004H,001H,004H,000H,000H;任",0
DB 008H,090H,028H,090H,029H,012H,02BH,011H,0FDH,07EH,029H,0A0H,039H,022H,028H,022H
DB 00AH,004H,01FH,004H,0F0H,0C8H,010H,030H,011H,0CCH,01EH,003H,010H,002H,000H,000H;教",1
DB 008H,000H,008H,002H,008H,004H,008H,008H,008H,030H,089H,0C0H,048H,080H,078H,000H
DB 029H,000H,008H,080H,008H,040H,008H,030H,008H,01EH,008H,00CH,008H,000H,000H,000H;六",
ORG 2B00H
DB 008H,000H,008H,002H,008H,004H,008H,008H,008H,030H,089H,0C0H,048H,080H,078H,000H
DB 029H,000H,008H,080H,008H,040H,008H,030H,008H,01EH,008H,00CH,008H,000H,000H,000H;六",2
DB 002H,020H,004H,020H,008H,020H,030H,020H,0C7H,0E0H,044H,020H,044H,020H,044H,020H
DB 07FH,0FFH,044H,020H,044H,020H,044H,020H,044H,020H,040H,020H,000H,020H,000H,01BH;年",3
end
展开全部
#include<reg51.h>
sbit P20=P2^0;
sbit P22=P2^2;
unsigned char code text[]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x00,0x80,0xFC,0x80,0x05,0xFE,0x85,0x04,0x4A,0x48,0x28,0x40,0x10,0x40,
0x18,0x40,0x18,0x60,0x24,0xA0,0x24,0x90,0x41,0x18,0x86,0x0E,0x38,0x04,0x00,0x00,/*"欢",0*/
0x40,0x00,0x21,0x80,0x36,0x7C,0x24,0x44,0x04,0x44,0x04,0x44,0xE4,0x44,0x24,0x44,
0x25,0x44,0x26,0x54,0x24,0x48,0x20,0x40,0x20,0x40,0x50,0x00,0x8F,0xFE,0x00,0x00,/*"迎",1*/
0x01,0x00,0x21,0x10,0x19,0x18,0x0D,0x10,0x09,0x20,0x01,0x04,0x7F,0xFE,0x04,0x40,
0x04,0x40,0x04,0x40,0x04,0x40,0x08,0x42,0x08,0x42,0x10,0x42,0x20,0x3E,0x40,0x00,/*"光",2*/
0x01,0x00,0x09,0x80,0x09,0x00,0x49,0xFE,0x4A,0x20,0x4A,0x10,0x4C,0x10,0x49,0x04,
0x49,0xFE,0x49,0x24,0x49,0x24,0x49,0x24,0x49,0x24,0x09,0xFC,0x09,0x04,0x00,0x00,/*"临",3*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
void Delay(unsigned char i)
{
unsigned char j;
for(;i>0;i--)
for(j=0;j<80;j++)
{;}
}
void main()
{
unsigned int a,e;
unsigned char b,c,d=0;
SCON=0;
while(1)
{
for(e=0;e<160;e=e+32)
{
for(a=0;a<8;a++)
{
for(b=0;b<8;b++)
{
for(c=0;c<32;c++)
{
SBUF=~(text[e+c+32]>>(8-a)|text[e+c+1]<<a);
while(TI==0);
TI=0;
SBUF=~(text[e+c+1]>>(8-a)|text[e+c]<<a);
while(TI==0);
TI=0;
c++;
P20=1;
P1=d;
P22=0;
Delay(3);
P20=0;
P22=1;
d++;
if(d==16)d=0;
}
}
}
for(a=0;a<8;a++)
{
for(b=0;b<8;b++)
{
for(c=0;c<32;c++)
{
SBUF=~(text[e+c+1+32]>>(8-a)|text[e+c+32]<<a);
while(TI==0);
TI=0;
SBUF=~(text[e+c+32]>>(8-a)|text[e+c+1]<<a);
while(TI==0);
TI=0;
c++;
P20=1;
P1=d;
P22=0;
Delay(3);
P20=0;
P22=1;
d++;
if(d==16)d=0;
}
}
}
}
for(a=0;a<160;a=a+2)
{
for(b=0;b<8;b++)
{
for(c=1;c<32;c++)
{
if(a+c<160){
SBUF=~text[a+c];
while(TI==0);
TI=0;
SBUF=~text[a+c-1];
while(TI==0);
TI=0;}
else {
SBUF=~text[a+c-160];
while(TI==0);
TI=0;
SBUF=~text[a+c-1-160];
while(TI==0);
TI=0;}
P1=c/2;
c++;
P20=1;
P22=0;
Delay(3);
P22=1;
P20=0;
}
}
}
}
}
自己改一下吧,不是很难。汇编的只有8*8的,需要的话留言即可。
sbit P20=P2^0;
sbit P22=P2^2;
unsigned char code text[]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x00,0x80,0xFC,0x80,0x05,0xFE,0x85,0x04,0x4A,0x48,0x28,0x40,0x10,0x40,
0x18,0x40,0x18,0x60,0x24,0xA0,0x24,0x90,0x41,0x18,0x86,0x0E,0x38,0x04,0x00,0x00,/*"欢",0*/
0x40,0x00,0x21,0x80,0x36,0x7C,0x24,0x44,0x04,0x44,0x04,0x44,0xE4,0x44,0x24,0x44,
0x25,0x44,0x26,0x54,0x24,0x48,0x20,0x40,0x20,0x40,0x50,0x00,0x8F,0xFE,0x00,0x00,/*"迎",1*/
0x01,0x00,0x21,0x10,0x19,0x18,0x0D,0x10,0x09,0x20,0x01,0x04,0x7F,0xFE,0x04,0x40,
0x04,0x40,0x04,0x40,0x04,0x40,0x08,0x42,0x08,0x42,0x10,0x42,0x20,0x3E,0x40,0x00,/*"光",2*/
0x01,0x00,0x09,0x80,0x09,0x00,0x49,0xFE,0x4A,0x20,0x4A,0x10,0x4C,0x10,0x49,0x04,
0x49,0xFE,0x49,0x24,0x49,0x24,0x49,0x24,0x49,0x24,0x09,0xFC,0x09,0x04,0x00,0x00,/*"临",3*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
void Delay(unsigned char i)
{
unsigned char j;
for(;i>0;i--)
for(j=0;j<80;j++)
{;}
}
void main()
{
unsigned int a,e;
unsigned char b,c,d=0;
SCON=0;
while(1)
{
for(e=0;e<160;e=e+32)
{
for(a=0;a<8;a++)
{
for(b=0;b<8;b++)
{
for(c=0;c<32;c++)
{
SBUF=~(text[e+c+32]>>(8-a)|text[e+c+1]<<a);
while(TI==0);
TI=0;
SBUF=~(text[e+c+1]>>(8-a)|text[e+c]<<a);
while(TI==0);
TI=0;
c++;
P20=1;
P1=d;
P22=0;
Delay(3);
P20=0;
P22=1;
d++;
if(d==16)d=0;
}
}
}
for(a=0;a<8;a++)
{
for(b=0;b<8;b++)
{
for(c=0;c<32;c++)
{
SBUF=~(text[e+c+1+32]>>(8-a)|text[e+c+32]<<a);
while(TI==0);
TI=0;
SBUF=~(text[e+c+32]>>(8-a)|text[e+c+1]<<a);
while(TI==0);
TI=0;
c++;
P20=1;
P1=d;
P22=0;
Delay(3);
P20=0;
P22=1;
d++;
if(d==16)d=0;
}
}
}
}
for(a=0;a<160;a=a+2)
{
for(b=0;b<8;b++)
{
for(c=1;c<32;c++)
{
if(a+c<160){
SBUF=~text[a+c];
while(TI==0);
TI=0;
SBUF=~text[a+c-1];
while(TI==0);
TI=0;}
else {
SBUF=~text[a+c-160];
while(TI==0);
TI=0;
SBUF=~text[a+c-1-160];
while(TI==0);
TI=0;}
P1=c/2;
c++;
P20=1;
P22=0;
Delay(3);
P22=1;
P20=0;
}
}
}
}
}
自己改一下吧,不是很难。汇编的只有8*8的,需要的话留言即可。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
别用汇编了,那个麻烦,还是用C语言编方便
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询