Motorola M68CPU32BUG Manuel d'utilisateur Page 126

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 196
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 125
SYSTEM CALLS
M68CPU32BUG/D REV 1 5-12
.INLN Input Line Routine .INLN
5.2.8 Input Line Routine
SYSCALL .INLN
TRAP CODE: $0002
Reads a line from the default input port. The minimum buffer size is 256 bytes.
Entry Conditions:
SP ==> Address of string buffer <long>
Exit Conditions:
SP ==> Address of last character in the string+1 <long>
EXAMPLE
If A0 contains the string destination address:
SUBQ.L #4,A7
Allocate space for result
PEA (A0)
Push pointer to destination
TRAP #15
(May also invoke by SYSCALL
DC.W 2
macro (’’SYSCALL .INLN’’)
MOVE.L (A7)+,A1
Retrieve address of last character+1
NOTE
A line is a string of characters terminated by a carriage return
(<CR>). The maximum allowed size is 254 characters. The
terminating <CR> is not included in the string. See Terminal
Input/Output Control character processing as described in Chapter
1.
Vue de la page 125
1 2 ... 121 122 123 124 125 126 127 128 129 130 131 ... 195 196

Commentaires sur ces manuels

Pas de commentaire