echo off
: set key-input char. code to internal variable 'errorlevel'
echo ASCII.BAT version 1.0
if exist BATKEY.COM goto B
if exist INPUT$.COM goto A
: ↓↓↓↓↓↓ Do not touch!
echo エヘ!エLヘ!> INPUT$.COM
: ↑↑↑↑↑↑ Do not touch!
:A
echo %0> press any key.
INPUT$.COM
goto C
:B
BATKEY.COM 2 BATKEY> press any key:
:C
echo.
ERROR.BAT
:
: -- INPUT$.COM --
: ____ hex.code :mnemonic ______ :char. :
: ____ B4 01 __ :mov ___ ah,01 _ :エ __ : input code → al
: ____ CD 21 __ :int ___ 21h ___ :ヘ! __ : DOS function call
: ____ B4 4C __ :mov ___ ah,4ch_ :エL __ : al → 'errorlevel'
: ____ CD 21 __ :int ___ 21h ___ :ヘ! __ : DOS function call
: entering 01 code : ctrl+P, ctrl+A
: The latter part is identical to 'reboot.com' ↓
:
http://pc5.2ch.net/test/read.cgi/tech/1040614686/204