Code:
int listGetNext(int node) { return memoryInt[node]; }
int listGetPrev(int node) { return memoryInt[node + 1]; }
int listGetData(int node) { return memoryInt[node + 2]; }
int listGetCount(int list) { return memoryInt[list + COUNT]; }
->
Code:
int listGetNext(int node) { return memoryInt[node + NEXT]; }
int listGetPrev(int node) { return memoryInt[node + PREV]; }
int listGetData(int node) { return memoryInt[node + DATA]; }
int listGetCount(int list) { return memoryInt[list + COUNT]; }
That would be better in my opinion.