blob: c46f22036c7d528508823e2c642c38efb4c1bceb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// debug.h
// Various functions useful for use during development.
void dPageDump(){
for(int i = 0; i < 256; i+=16){
printf("\t");
for(int j = 0; j < 16; j+=1){
printf("%2x ", Memory[(i+j)]);
}
printf("\n");
}
}
void dStatusDump(){
printf("acc:\t%x\nX:\t%x\nY:\t%x\nstack:\t%x\nflags:\t%x\n", acc, X, Y, S, P);
}
|