Motorola M68CPU32BUG Manuel d'utilisateur Page 36

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 68
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 35
OPERATING INSTRUCTIONS
M68332BCC/D 3-8 MOTOROLA
REV 1
3.4.3 System Calls
The CPU32Bug TRAP #15 handler allows system calls from user programs. A system call
accesses selected functional routines contained in CPU32Bug, including input and output
routines. TRAP #15 also transfers control to CPU32Bug at the end of a user program. For more
information on system calls, refer to Chapter 5 of the M68CPU32BUG Debug Monitor User’s
Manual, M68CPU32BUG/AD1. System calls include:
.INCHR (input character) reads a character from the default input port.
.INSTAT (input serial port status) checks for characters in the default input port
buffer.
.INLN (input line (pointer/pointer format)) reads a line from the default input port.
.READSTR (input string (pointer/count format)) reads a string of characters from the
default input port into a buffer.
.READLN (input line (pointer/count format)) reads a string of characters from the
default input port.
.CHKBRK (check for break) returns zero (0) status in condition code register if break
status is detected at the default input port.
.OUTCHR (output character) outputs a character to the default output port.
.OUTSTR (output string in pointer/pointer format) outputs a string of characters to
the default output port.
.OUTLN (output line in pointer/pointer format) outputs a character strings followed
by a carriage return (<CR>) and a line feed (<LF>) sequence.
.WRITE (output string in pointer/count format) formats character strings with a
count byte and outputs the string to the default output port. After formatting, the
count byte is the first byte in the string.
.WRITELN (output line in pointer/count format) formats character strings with a
count byte and outputs the string to the default output port. After formatting, the
count byte is the first byte in the string.
.PCRLF (output carriage return and line feed) sends a <CR> and a <LF> sequence to
the default output port.
.ERASLN (erase line) erases the line at the present cursor position.
.WRITD (output string with data in pointer/count format) uses the monitor I/O
routine which outputs a user string containing embedded variable fields. The user
passes the starting address of the string and the data stack address containing the data
which is inserted into the string. The output goes to the default output port.
Vue de la page 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 67 68

Commentaires sur ces manuels

Pas de commentaire