summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-08-14 17:41:43 +0200
committertomsmeding <tom.smeding@gmail.com>2016-08-14 17:41:51 +0200
commit13b733e20a277f0c40d9548553fc2f1453ea424d (patch)
tree7686c0422b5cac95436a3465ea88564c7e9a4d5a
parent472ee416b960eed639ca4f5bba6d250180eed3f0 (diff)
Style & nops
-rw-r--r--bfcomp.c6
-rw-r--r--epilogue.snippet.asm2
-rw-r--r--prologue.snippet.asm2
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