1 /* mvme.S -- board support for m68k
3 * Copyright (c) 1995, 1996 Cygnus Support
5 * The authors hereby grant permission to use, copy, modify, distribute,
6 * and license this software and its documentation for any purpose, provided
7 * that existing copyright notices are retained in all copies and that this
8 * notice is included verbatim in any distributions. No written agreement,
9 * license, or royalty fee is required for any of the authorized uses.
10 * Modifications to this software may be copyrighted by their authors
11 * and need not follow the licensing terms described here, provided that
12 * the new terms are clearly indicated on the first page of each file where
18 .title "mvme.S for m68k-coff"
25 .global SYM (putDebugChar)
27 .global SYM (getDebugChar)
28 .global SYM (havebyte)
29 .global SYM (exceptionHandler)
32 .comm SYM (vbr_table), vbr_size
35 * _exit -- Exit from the application. Normally we cause a user trap
36 * to return to the ROM monitor for another run.
46 * inbyte -- get a byte from the serial port
47 * d0 - contains the byte read in
50 SYM (getDebugChar): /* symbol name used by m68k-stub */
62 * outbyte -- sends a byte out the serial port
63 * d0 - contains the byte to be sent
66 SYM (putDebugChar): /* symbol name used by m68k-stub */
76 * outln -- sends a string of bytes out the serial port with a CR/LF
77 * a0 - contains the address of the string's first byte
78 * a1 - contains the address of the string's last byte
90 * outstr -- sends a string of bytes out the serial port without a CR/LF
91 * a0 - contains the address of the string's first byte
92 * a1 - contains the address of the string's last byte
104 * havebyte -- checks to see if there is a byte in the serial port,
105 * returns 1 if there is a byte, 0 otherwise.
118 * These constants are for the MVME-135 board's boot monitor. They
119 * are used with a TRAP 15 call to access the monitor's I/O routines.
120 * they must be in the word following the trap call.