Specifies that serial input must be redirected.
$SERIALINPUT = 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.
$SERIALINPUT = Myinput
'here goes your program
;perform the needed actions here
mov a, sbuf ;serial input buffer to acc