Skip to content
Snippets Groups Projects
Commit 78ba790a authored by Zhaolin Deng's avatar Zhaolin Deng
Browse files

test

parent 4dc852aa
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ public class Fuzzer {
}
pw.println("RET R0");
*/
pw.prinln("RET R0")
}catch (Exception e){
e.printStackTrace(System.err);
System.exit(1);
......
......@@ -58,13 +58,13 @@ static void machine_init(void){
memory = malloc(sizeof(int32_t)*MEMORY_SIZE);
regs = malloc(sizeof(int32_t)*NUM_REGS);
memset(memory,0,sizeof(int32_t)*MEMORY_SIZE);
memset(regs,0,sizeof(int32_t)*NUM_REGS);
memset(regs,512,sizeof(int32_t)*NUM_REGS);
count = 0;
}
static void machine_free(void){
free(memory);
//free(regs);
free(regs);
}
static void do_add(unsigned int dest, unsigned int src1, unsigned int src2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment