diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-10-08 20:40:50 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-10-08 20:40:50 -0400 |
commit | 3f98f3dbf56811b481e5c422fe3c68e933802a76 (patch) | |
tree | 0dcf9f517825b419ebcda1e078a1f2f5c9d5770e | |
parent | 478b5d3f2de83611ceb0882e78585251c3aed998 (diff) |
Fix register names are lowercase
-rw-r--r-- | gen_code.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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; |