SYSTEM CALLS
M68CPU32BUG/D REV 1 5-11
.INCHR Input Character Routine .INCHR
5.2.7 Input Character Routine
SYSCALL .INCHR
TRAP CODE: $0000
Reads a character from the default input port. The character remains in the stack.
Entry Conditions:
SP ==> Space for character <byte>
Word fill <byte>
Exit Conditions:
SP ==> Character <byte>
Word fill <byte>
EXAMPLE
SUBQ.L #2,A7 Allocate space for result
SYSCALL .INCHR Call .INCHR
MOVE.B (A7)+,D0 Load character in D0
Commentaires sur ces manuels