Excerpt from Clarence Verge <[EMAIL PROTECTED]>:

  So, you must somehow get the instructions into memory. There is no way to
  do this from the keyboard. I suggested debug as a simple expedient to
  make a file that DOS would load into memory for you.
  There is a more obscure way to do this without using debug, if you wish
  to try it. It uses the re-direction abilities of DOS to write your keyboard
  entry directly to a file. Unfortunately, since there is no HEX translator
  built into the keyboard, your data entry is going to seem quite strange. <g>

  Type copy con: myprog.com <enter>
  Type alt178 (use the KEYPAD)
  (hold down the alt while entering 178 then lift alt - do not hit enter)
  Type alt07 alt180 alt02 alt205 alt33 alt205 alt32
  (note that you lift alt between the above entries and still do not hit enter)
  Type cntrlZ <enter>

  DOS has the builtin ability to create the necessary binary patterns, but
  the number system is decimal, not hex. The exact same patterns are created.
  What happens above is that the first line instructs DOS to send whatever
  you type at the console (keyboard) to a file called myprog.com.

  Then these digits are entered:
  178 (=Hex B2) (=10110010 Binary)
   07 (=Hex 07) (=00000111 Binary)
  180 (=Hex B4) (=10110100 Binary)
   02 (=Hex 02) (=00000010 Binary)
  205 (=Hex CD)
   33 (=Hex 21)
  205 (=Hex CD)
   32 (=Hex 20)
  Followed by controlZed which is the end-of-file character (Decimal 26,Hex 1A)
  Followed by enter which tells DOS you are done, and it closes the file.

  This is the exact same program as before, and no Debug is required.
(snip)

How do you enter the null character (Hex 00)?  Alt-000 would not work for that.

Any way to use BASIC to create a small binary file?  Or is that only for older
computers?

Reply via email to