малость доделать

Низкоуровневое программирование портов, микроконтроллеров и т.д.

Модератор: Andy

Ответить
sasadabest
Сообщения: 18
Зарегистрирован: 15 окт 2007, 01:44

666666666666
Аватара пользователя
somewhere
Сообщения: 1858
Зарегистрирован: 31 авг 2006, 17:14
Откуда: 71 RUS
Контактная информация:

Если почитать описание функции буфферизованного ввода символов с эхом (Int 21 Function 0A) то ответ очевиден:
7.1.11. Int 21H Function 0AH
Description:
Buffered Keyboard Input
Reads a string of bytes from the standard input device, up
to and including an ASCII carriage return (0DH), and places
them in a user-designated buffer. The characters are echoed to
the standard output device. Input may be redirected (if input
has been redirected, there is no way to detect EOF).
Input Output
------------------------------ ------
AH=0AH Nothing
DS : DX=segment : offset of buffer
- The buffer used by this function has the following format:
Byte
Contents
0
maximum number of characters to read, set by
program
1
number of characters actually read (excluding
carriage return), set by MS-DOS
2+
string read from keyboard or standard input,
terminated by a carriage return (0DH)
It's a long way to the top if you wanna rock'n'roll
Ответить