Getchar

VAX11

 

Getchar

 

Description:    Read one char from the keyboard.

Gets:               Nothing.

Returns:         ASCII value of the character in R0. -1 if EOF reached.

 

Example:

 

.text

 

main: .word 0

      calls $0, .getchar      # Get char from the keyboard

      movb r0, ...