diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-11 11:55:26 +1000 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-11 11:55:26 +1000 |
commit | 3f3574efb1e1c27d2f471c9b4a87a9786326e773 (patch) | |
tree | 856a3d24011eba1d13998967926e477de3bc8587 /debug.h | |
parent | 2cf25a4fb232939191147896366b0c68d09c985e (diff) |
work on instruction table data and interpreter
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2,7 +2,7 @@ // Various functions useful for use during development. // Converts a single character to hexadecimal -int dChar2Num (char c) { +int dCharToNum(char c){ // 0x0 - 0x9 if (c != 0x20 && (c >= 0x30 && c <= 0x39)){ return (c - 0x30); @@ -31,6 +31,7 @@ void dPageDump(short m){ } } -void dStatusDump(){ - printf("acc:\t%x\nX:\t%x\nY:\t%x\nstack:\t%x\nflags:\t%x\n", acc, X, Y, S, P); +// Dump CPU values +void dStatusDump(void){ + printf(" acc:\t%x\n X:\t%x\n Y:\t%x\nstack:\t%x\nflags:\t%x\n", acc, X, Y, S, P); }
\ No newline at end of file |