China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-26 18:36
中国DOS联盟论坛 » Blog » diaowinner » 劳动大开!GBK码表展示

劳动大开!GBK码表展示

我用类似bat、Basic、C的语言,做了这个东西

设 %qu%、%wei%为变量。
设置%wei%为0x40。
:set
显示“显示第几区?「换行」”
设置%qu%为输入的16进制数。
当%qu%大于等于 0x81 转到 print 否则 转到 error
:error
错误!
转到 set
:print
显示“%qu%%wei%”
注释 上面的是区位对应的字符,不是十六进制。
设置%wei%为%wei%+1。
当%wei%等于 0xFF 退出 否则 转到 print

这只是我的小思路……
谢谢!Sample Text

[ Last edited by diaowinner on 2019-5-2 at 12:42 ]

Comments

No comments yet — be the first to comment.