Skip to content
Snippets Groups Projects
Commit e6f7f6ac authored by ryuzakighost's avatar ryuzakighost
Browse files

test3

parent bced0d09
No related branches found
No related tags found
No related merge requests found
......@@ -28,12 +28,17 @@ public class Fuzzer {
pw.println("ADD R1 R1 R2");
}*/
/*pw.println("MOV R1 65535");
pw.println("LDR R0 R1 0");
pw.println("RET R0");*/
pw.print("RET R0");
pw.println("LDR R0 R1 0");*/
pw.println("MOV R1 1");
pw.println("LDR R0 R1 65535");
pw.println("RET R0");
/*pw.print("RET R0");
for(int x=0;x<2000;x++){
pw.print("a");
}
}*/
/*pw.println("ADD R0 R1 R2");
......
......@@ -40,7 +40,7 @@ const char INSTRUCTION_JZ[] = "jz";
#define NUM_REGS 32
#define MAX_REG (NUM_REGS-1)
#define MEMORY_SIZE 65536 /* 4 x as much memory as a 64 */
#define MAX_ADDR (MEMORY_SIZE-1)
#define MAX_ADDR (MEMORY_SIZE)
/* we force building with -fwrapv to ensure that signed overflow is defined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment