规定的打印形式比较怪异
为什么只分两栏?
贴一个近似的
以10进制码值计算偏移
应该也可以以16进制码值计算偏移- :: ASCPrint.cmd - 按照特定形式打印ASCII字符集 - qzwqzw
- @echo off & setlocal EnableDelayedExpansion & chcp 437 & cls
- call ascmap.cmd ascmap
- for /l %%i in (1,1,255) do set "$%%i=!ascmap:~%%i,1!"
- set values="$0=<NUL>" "$7=<BELL>" "$8=<BS>" "$9=<TAB>" "$10=<LF>" "$13=<CR>" "$32=<SPACE>"
- for %%v in (%values%) do set %%v
- for /l %%i in (0,1,3) do (
- for /l %%j in (0,1,31) do (
- set /a n1=%%i*64+%%j,n2=%%i*64+32+%%j
- cmd /c exit /b !n1!
- set "no1= !n1! !=ExitCode:~-2!"
- for %%i in (!n1!) do set "ch1=!$%%i! "
- cmd /c exit /b !n2!
- set "no2= !n2! !=ExitCode:~-2!"
- for %%i in (!n2!) do set "ch2=!$%%i! "
- echo !no1:~-6! !ch1:~0,7! ^| !no2:~-6! !ch2:~0,7!
- )
- echo.
- )
复制代码
|