$SERIALINPUT

Top  Previous  Next

Action

Specifies that serial input must be redirected.

 

 

Syntax

$SERIALINPUT = label

 

 

Remarks

Label

The name of the assembler routine that must be called when an character is needed from the INPUT routine. The character must be returned in ACC.

 

With the redirection of the INPUT command, you can use your own routines.

This way you can use other devices as input devices.

Note that the INPUT statement is terminated when a RETURN code (13) is received.

 

See also

$SERIALOUTPUT

 

 

Example

$SERIALINPUT = Myinput

'here goes your program

END

!myinput:

;perform the needed actions here

mov a, sbuf  ;serial input buffer to acc

ret