12864的字库是什么,怎么查汉字编码?? 5
关于下面的程序有问题么???rsbitp2.5rwbitp2.6ebitp2.7rstbitp2.4showequ50horderequ51horg0000hacalld...
关于下面的程序有问题么???
rs bit p2.5
rw bit p2.6
e bit p2.7
rst bit p2.4
show equ 50h
order equ 51h
org 0000h
acall dely
clr rst
setb rst
lcall csh
ajmp sta
org 0100h
sta:
mov order,#80h
lcall pr1
mov dptr,#tab1
lcall show_1
ajmp sta
show_1:
mov r0,#10h
show_2:
mov a,#00h
movc a,@a+dptr
mov show,a
lcall pr2
inc dptr
djnz r0,show_2
ret
pr0:
clr rs
setb rw
setb e
clr e
jb p0.7,pr0
lcall dely
ret
pr1:
lcall pr0
pr1_1:
clr rw
clr rs
mov p0,order
setb e
nop
nop
nop
clr e
ret
pr2:
lcall pr0
setb rs
clr rw
mov p0,show
setb e
nop
nop
nop
clr e
ret
csh:
mov order,#30h
lcall pr1_1
lcall dely
mov order,#30h
lcall pr1_1
lcall dely
mov order,#0ch
lcall pr1
lcall dely
mov order,#01h
lcall pr1
lcall dely
mov order,#06h
lcall pr1
lcall dely
ret
dely:
mov r6,#20
d2:
mov r7,#200
d1:
nop
nop
nop
djnz r7,d1
djnz r6,d2
ret
tab1:
db “此处为所谓的文字编码"
END 展开
rs bit p2.5
rw bit p2.6
e bit p2.7
rst bit p2.4
show equ 50h
order equ 51h
org 0000h
acall dely
clr rst
setb rst
lcall csh
ajmp sta
org 0100h
sta:
mov order,#80h
lcall pr1
mov dptr,#tab1
lcall show_1
ajmp sta
show_1:
mov r0,#10h
show_2:
mov a,#00h
movc a,@a+dptr
mov show,a
lcall pr2
inc dptr
djnz r0,show_2
ret
pr0:
clr rs
setb rw
setb e
clr e
jb p0.7,pr0
lcall dely
ret
pr1:
lcall pr0
pr1_1:
clr rw
clr rs
mov p0,order
setb e
nop
nop
nop
clr e
ret
pr2:
lcall pr0
setb rs
clr rw
mov p0,show
setb e
nop
nop
nop
clr e
ret
csh:
mov order,#30h
lcall pr1_1
lcall dely
mov order,#30h
lcall pr1_1
lcall dely
mov order,#0ch
lcall pr1
lcall dely
mov order,#01h
lcall pr1
lcall dely
mov order,#06h
lcall pr1
lcall dely
ret
dely:
mov r6,#20
d2:
mov r7,#200
d1:
nop
nop
nop
djnz r7,d1
djnz r6,d2
ret
tab1:
db “此处为所谓的文字编码"
END 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询