|
sdking
新手上路

积分 5
发帖 2
注册 2008-10-22
状态 离线
|
『第 61 楼』:
使用 LLM 解释/回答一下
请教一下GBK字库中的字的偏移地址是怎么算的?下面的公式算出来的好像不对
偏移=((ch1-0x81)*190 (ch2-0x40)-(ch2/128))*2,其中ch1和ch2分别是一个字符的高字节和低字节。
Please provide the full context or more details about the specific situation related to this formula so that I can better help you analyze why it might not be correct. As it stands, just the formula you provided is given, and without more context, it's a bit difficult to further correct or explain in detail. Please provide more relevant information if possible.
|
|
2008-10-22 11:05 |
|
|
本是
银牌会员
    
积分 2221
发帖 789
注册 2005-1-27
状态 离线
|
『第 62 楼』:
使用 LLM 解释/回答一下
我的vtGBK.com和vtMagi?.com用的计算公式如下:
;假设汉字高位在AH/ch1,低位在AL/ch2中,
;rec=A+(AH-B)*C+(AL-D)-(AL\80h)
;if AH>A0h then
; if AL>A0h then '1-94:A1~FE || A1~FE
; rec=(AH-A1h)*94+(AL-A1h)
; else '159-254:A1~FE || 40~A0
; rec=94*94+32*94+32*96+(AH-A1h)*96+(AL-40h)-(AL\128)
; endif;8836 3008 3072
;else ;11844 14916
; if AL>A0h then '95-126:81~A0 || A1~FE
; rec=94*94+(AH-81h)*94+(AL-A1h)
; else '127-159:81~A0 || 40~A0
; rec=94*94+32*94+(AH-81h)*96+(AL-40h)-(AL\128)
; endif
;endif
The calculation formulas used by my vtGBK.com and vtMagi?.com are as follows:
; Assume the high byte of the Chinese character is in AH/ch1 and the low byte is in AL/ch2.
; rec = A + (AH - B) * C + (AL - D) - (AL \ 80h)
; if AH > A0h then
; if AL > A0h then '1 - 94: A1 ~ FE || A1 ~ FE
; rec = (AH - A1h) * 94 + (AL - A1h)
; else '159 - 254: A1 ~ FE || 40 ~ A0
; rec = 94 * 94 + 32 * 94 + 32 * 96 + (AH - A1h) * 96 + (AL - 40h) - (AL \ 128)
; endif; 8836 3008 3072
; else ; 11844 14916
; if AL > A0h then '95 - 126: 81 ~ A0 || A1 ~ FE
; rec = 94 * 94 + (AH - 81h) * 94 + (AL - A1h)
; else '127 - 159: 81 ~ A0 || 40 ~ A0
; rec = 94 * 94 + 32 * 94 + (AH - 81h) * 96 + (AL - 40h) - (AL \ 128)
; endif
; endif
|

my major is english----my love is dos----my teacher is the buddha----my friends--how about U |
|
2008-10-22 20:22 |
|
|
sdking
新手上路

积分 5
发帖 2
注册 2008-10-22
状态 离线
|
『第 63 楼』:
使用 LLM 解释/回答一下
谢谢楼上高手,可以了
Thanks to the expert upstairs, it's okay now
|
|
2008-10-25 23:29 |
|
|
xiaoguizi00
新手上路

积分 4
发帖 2
注册 2008-11-15
状态 离线
|
|
2008-11-15 11:09 |
|
|
yongshi01
新手上路

积分 2
发帖 1
注册 2008-11-20
状态 离线
|
|
2008-11-20 16:25 |
|
|
tw00235701
新手上路

积分 2
发帖 1
注册 2008-12-4
状态 离线
|
『第 66 楼』:
使用 LLM 解释/回答一下
我找這個找了好久了= ="
寫VB6的點矩陣程式要用到QQ"
I've been looking for this for a long time = ="
To write a dot matrix program in VB6, you need to use QQ"
|
|
2008-12-5 16:40 |
|
|
wangyx
新手上路

积分 8
发帖 4
注册 2008-11-28
状态 离线
|
|
2008-12-5 22:21 |
|
|
283868130
新手上路

积分 19
发帖 11
注册 2008-12-30
状态 离线
|
|
2009-1-2 04:22 |
|
|
lin8197
初级用户
 
积分 186
发帖 36
注册 2003-10-2
状态 离线
|
『第 69 楼』:
使用 LLM 解释/回答一下
楼主能发一份给我吗?
最近刚好要用VB写一个用点阵显示汉字的软件,请楼主帮忙发一份源码给我.
filelin@21cn.com
Can the landlord send one to me?
Recently, I happen to need to write a software for displaying Chinese characters in dot matrix with VB. Please help the landlord send me a copy of the source code.
filelin@21cn.com
|
|
2009-1-16 10:50 |
|
|
yonsh
新手上路

积分 2
发帖 1
注册 2008-1-13
状态 离线
|
『第 70 楼』:
使用 LLM 解释/回答一下
zhichiyixia.........
Support a little bit.........
|
|
2009-1-16 12:09 |
|
|
tom0512
新手上路

积分 6
发帖 3
注册 2009-1-29
状态 离线
|
|
2009-1-30 11:13 |
|
|
tom0512
新手上路

积分 6
发帖 3
注册 2009-1-29
状态 离线
|
『第 72 楼』:
使用 LLM 解释/回答一下
改天向您请教相关问题!谢谢! ^_^
I'll ask you about relevant issues another day! Thank you! ^_^
|
|
2009-1-30 11:14 |
|
|
tom0512
新手上路

积分 6
发帖 3
注册 2009-1-29
状态 离线
|
『第 73 楼』:
使用 LLM 解释/回答一下
刚才看了楼主的软件,确实很好,很多功能都考虑进去了。现在我正在使用单片机和LCD去实现显示汉字的功能,需要用到字符点阵数组数据。所以想请教楼主您的那个字符点阵数组数据是如何计算来的?请教中,谢谢!
e_mail: a_tang2008@163.com
Just now I looked at the software of the original poster, it's really good, many functions are taken into account. Now I'm using a single-chip microcomputer and LCD to realize the function of displaying Chinese characters, and I need to use character dot matrix array data. So I want to ask the original poster how the character dot matrix array data is calculated? Asking, thank you!
e_mail: a_tang2008@163.com
|
|
2009-1-30 11:28 |
|
|
guchaochen
新手上路

积分 2
发帖 1
注册 2009-3-1
状态 离线
|
『第 74 楼』:
使用 LLM 解释/回答一下
谢谢分享 帮了我大忙了
Thanks for sharing. It helped me a lot.
|
|
2009-3-2 10:29 |
|
|
Hawk911
初级用户
 
积分 116
发帖 67
注册 2007-2-23
状态 离线
|
『第 75 楼』:
使用 LLM 解释/回答一下
很不错,谢谢楼主!!
That's great, thank you, the thread starter!
|
|
2009-3-3 11:16 |
|