Motorola M68CPU32BUG User Manual Page 125

  • Download
  • Add to my manuals
  • Print
  • Page
    / 196
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 124
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
Page view 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 195 196

Comments to this Manuals

No comments