diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-07 02:35:46 +1000 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-07 02:35:46 +1000 |
commit | fbca225d25db812fe7823a8528dff17320cf1c53 (patch) | |
tree | f99d672c7245233814cd038fd683ef8bf4270961 /debug.h | |
parent | 4b2952578ece47358960e29825443f77070a7457 (diff) |
commit so I can access it tomorrow.
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,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); +}
\ No newline at end of file |