Incorporating The Standard I/O Driver - Fujitsu F2MC-16L User Manual

Hide thumbs Also See for F2MC-16L:
Table of Contents

Advertisement

CHAPTER 3 Overview of the Standard I/O Library
3.2

Incorporating the Standard I/O Driver

When using the standard I/O library, you must develop your own code (I/O driver) for
the target system. The driver inputs and outputs individual characters using the actual
hardware.
I Incorporating the standard I/O driver
Follow the specifications listed below when creating an I/O driver.
❍ Input driver interface
❍ Output driver interface
Programs in the standard I/O library do not issue system calls for exclusive control or
waiting on events. If required, issue system calls from the program that calls the function
or from the I/O driver.
22
Item
Input
Output
Registration method
Register saving
Item
Input
Output
Registration method
Register saving
Description
None
AL: Input character code
In case of an error, return EOF (-1).
Store the entry address of the input driver (24-bit
address) in the four bytes commencing from
label "_stdin".
Save all except the AL and AH registers and T,
N, Z, V, and C.
*
Description
@sp+4 (2 bytes) Output character code
AL: Output character code
In case of an error, return EOF (-1).
Store the entry address of the output driver (24-
bit address) in the four bytes commencing from
label "_stdout".
Save all except the AL and AH registers and T,
N, Z, V, and C.

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16xlF2mc-16F2mc-16hF2mc-16f

Table of Contents