aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-10-08 20:40:50 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-10-08 20:40:50 -0400
commit3f98f3dbf56811b481e5c422fe3c68e933802a76 (patch)
tree0dcf9f517825b419ebcda1e078a1f2f5c9d5770e
parent478b5d3f2de83611ceb0882e78585251c3aed998 (diff)
Fix register names are lowercase
-rw-r--r--gen_code.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gen_code.c b/gen_code.c
index 0026ca3..bfef417 100644
--- a/gen_code.c
+++ b/gen_code.c
@@ -185,13 +185,13 @@ char *name;
{
reg_stack = malloc(13 * sizeof(char*));
assert(reg_stack);
- reg_stack[0] = "RAX"; reg_stack[1] = "RCX";
- reg_stack[2] = "RDX"; reg_stack[3] = "RSI";
- reg_stack[4] = "RDI"; reg_stack[5] = "R8";
- reg_stack[6] = "R9"; reg_stack[7] = "R10";
- reg_stack[8] = "R11"; reg_stack[9] = "R12";
- reg_stack[10] = "R13"; reg_stack[11] = "R14";
- reg_stack[12] = "R15";
+ reg_stack[0] = "%rax"; reg_stack[1] = "%rcx";
+ reg_stack[2] = "%rdx"; reg_stack[3] = "%rsi";
+ reg_stack[4] = "%rdi"; reg_stack[5] = "r8";
+ reg_stack[6] = "r9"; reg_stack[7] = "%r10";
+ reg_stack[8] = "%r11"; reg_stack[9] = "%r12";
+ reg_stack[10] = "%r13"; reg_stack[11] = "%r14";
+ reg_stack[12] = "%r15";
reg_ptr = reg_stack;
reg_cnt = 13;