/* SPIM S20 MIPS simulator. Execute SPIM syscalls, both in simulator and bare mode. Copyright (C) 1990-2004 by James Larus (larus@cs.wisc.edu). ALL RIGHTS RESERVED. Improved by Emin Gun Sirer. SPIM is distributed under the following conditions: You may make copies of SPIM for your own use and modify those copies. All copies of SPIM must retain my name and copyright notice. ALL RIGHTS RESERVED. You may not sell SPIM or distributed SPIM in conjunction with a commerical product or service without the expressed written consent of James Larus. THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ /* $Header: /Software/SPIM/src/syscall.h 1 3/11/04 7:14a Larus $ */ /* Exported functions. */ int do_syscall (); void handle_exception (); #define PRINT_INT_SYSCALL 1 #define PRINT_FLOAT_SYSCALL 2 #define PRINT_DOUBLE_SYSCALL 3 #define PRINT_STRING_SYSCALL 4 #define READ_INT_SYSCALL 5 #define READ_FLOAT_SYSCALL 6 #define READ_DOUBLE_SYSCALL 7 #define READ_STRING_SYSCALL 8 #define SBRK_SYSCALL 9 #define EXIT_SYSCALL 10 #define PRINT_CHARACTER_SYSCALL 11 #define READ_CHARACTER_SYSCALL 12 #define OPEN_SYSCALL 13 #define READ_SYSCALL 14 #define WRITE_SYSCALL 15 #define CLOSE_SYSCALL 16 #define EXIT2_SYSCALL 17