Input Character Routine (.Inchr) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents