From 13b733e20a277f0c40d9548553fc2f1453ea424d Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 14 Aug 2016 17:41:43 +0200 Subject: Style & nops --- bfcomp.c | 6 ++++-- epilogue.snippet.asm | 2 ++ prologue.snippet.asm | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bfcomp.c b/bfcomp.c index 5a3ede6..804b8a5 100644 --- a/bfcomp.c +++ b/bfcomp.c @@ -339,8 +339,10 @@ void readsource(FILE *f,char **sourcep,Sourcemap **smp){ sourcei++; continue; } - if(sm)sm->maps[i].from=sourcei; - if(sm)sm->maps[i].to=sourcei+1; + if(sm){ + sm->maps[i].from=sourcei; + sm->maps[i].to=sourcei+1; + } source[i++]=c; sourcei++; } diff --git a/epilogue.snippet.asm b/epilogue.snippet.asm index fffddb7..b37d48b 100644 --- a/epilogue.snippet.asm +++ b/epilogue.snippet.asm @@ -1,4 +1,6 @@ + nop + mov rdi, [buf] ; EPILOGUE call _free diff --git a/prologue.snippet.asm b/prologue.snippet.asm index e706651..a1768a4 100644 --- a/prologue.snippet.asm +++ b/prologue.snippet.asm @@ -35,6 +35,8 @@ _main: mov r12, rax %endif + nop + ; rbx = bufp ; r12 = heatmap -- cgit v1.2.3-70-g09d2