1
/* SPIM S20 MIPS simulator.
2
System calls implemented by simulator.
4
Copyright (C) 1990-2000 by James Larus (larus@cs.wisc.edu).
7
SPIM is distributed under the following conditions:
9
You may make copies of SPIM for your own use and modify those copies.
11
All copies of SPIM must retain my name and copyright notice.
13
You may not sell SPIM or distributed SPIM in conjunction with a
14
commerical product or service without the expressed written consent of
17
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
18
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
19
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
/* $Header: /Software/SPIM/src/spim-syscall.h 4 12/24/00 1:37p Larus $
27
#define PRINT_INT_SYSCALL 1
28
#define PRINT_FLOAT_SYSCALL 2
29
#define PRINT_DOUBLE_SYSCALL 3
30
#define PRINT_STRING_SYSCALL 4
31
#define READ_INT_SYSCALL 5
32
#define READ_FLOAT_SYSCALL 6
33
#define READ_DOUBLE_SYSCALL 7
34
#define READ_STRING_SYSCALL 8
35
#define SBRK_SYSCALL 9
36
#define EXIT_SYSCALL 10