Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
59
Добавлен:
14.04.2015
Размер:
2.03 Mб
Скачать

Keil Software — A51/AX51/A251 Macro Assembler and Utilities

187

 

 

Console I/O Functions

There are two MPL processor functions that perform console I/O: IN and OUT. Their names describe the function each performs. IN outputs a character '>' as a prompt, and returns the line typed at the console. OUT outputs a string to the console; a call to OUT is replaced by the null string.

The syntax for the MPL processor functions IN and OUT is:

%IN

%OUT (balanced-text)

Source text

%OUT (enter baud rate) %set (BAUD_RATE,%in) BAUD_RATE = %BAUD_RATE

Output text

<19200 was entered at the console> BAUD_RATE = 19200

6

Соседние файлы в папке HLP