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
37 lines (28 sloc) 1012 Bytes
/*
mipsivm - MIPS Interpreting Virtual Machine
Copyright 2018-2020, Yaotian "Zero" Tang. All rights reserved.
This file defines the development kits for mipsivm project.
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: /include/devkit.h
*/
#include "midef.h"
#define page_size 0x1000
#define pfn(x) (x>>12)
bool mips_init_mars_vm(void* ds,void* ts,u32 ds_size,u32 ts_size,u32 stack_size);
void mips_run_mars_vm();
void cdecl sim_printf(const char* format,...);
i32 sim_readint();
float sim_readfloat();
double sim_readdouble();
void sim_readstring(char* string,u32 limit);
char sim_readchar();
void sim_setseed(u32 seed);
u32 sim_getrand();
void* load_section(char* file_path,u32* size);
bool unload_section(void* section);
void* alloc_page(u32 size);
bool free_page(void* address);
void* alloc_mem(u32 size);
bool free_mem(void* address);