Working memory viewer

This commit is contained in:
id101010
2016-11-14 23:58:00 +01:00
parent 63c22b4c99
commit 4ca4a1389d

View File

@@ -107,7 +107,7 @@ void print_memoryviewer(bf_code_t *bf)
// print the adresses beneath the memory cells
for(int i=(mp-7); i<(mp+8); i++) {
printf("%03d ", ((i<0 || i>MEMORY_SIZE) ? 0 : abs(i-mp)));
printf("%03d ", ((i<0 || i>MEMORY_SIZE) ? 0 : (mp+i)));
}