Skip to content
Permalink
309c13ab73
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
45 lines (39 sloc) 1.55 KB
/*
mipsivm - MIPS Interpreting Virtual Machine
Copyright 2018-2020, Yaotian "Zero" Tang. All rights reserved.
This file defines the Runtime VM based on MARS.
This program is distributed in the hope that it will be useful, but
without any warranty (no matter implied warranty or merchantability
or fitness for a particular purpose, etc.).
File Location: /mars.h
*/
#include "midef.h"
#define mips_mars_syscall_print_integer 1
#define mips_mars_syscall_print_float 2
#define mips_mars_syscall_print_double 3
#define mips_mars_syscall_print_string 4
#define mips_mars_syscall_read_integer 5
#define mips_mars_syscall_read_float 6
#define mips_mars_syscall_read_double 7
#define mips_mars_syscall_read_string 8
#define mips_mars_syscall_alloc_heap 9
#define mips_mars_syscall_exit 10
#define mips_mars_syscall_print_char 11
#define mips_mars_syscall_read_char 12
#define mips_mars_syscall_open_file 13
#define mips_mars_syscall_read_file 14
#define mips_mars_syscall_write_file 15
#define mips_mars_syscall_close_file 16
#define mips_mars_syscall_exit2 17
#define mips_mars_syscall_time 30
#define mips_mars_syscall_midi_out 31
#define mips_mars_syscall_sleep 32
#define mips_mars_syscall_midi_out_sync 33
#define mips_mars_syscall_print_hex 34
#define mips_mars_syscall_print_bin 35
#define mips_mars_syscall_print_unsigned 36
#define mips_mars_syscall_set_seed 40
#define mips_mars_syscall_rnd_int 41
#define mips_mars_syscall_rnd_int_range 42
#define mips_mars_syscall_rnd_float 43
#define mips_mars_syscall_rnd_double 44