commit eb14eca2fb285d5493995d87dff587d1d46568b6
parent 8515a45ff17102a93bf77c123798a1aa3f636b46
Author: mjkloeckner <martin.cachari@gmail.com>
Date: Sun, 30 Apr 2023 17:39:27 -0300
fix formatting
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/main.c b/main.c
@@ -11,7 +11,7 @@
#include <unistd.h>
#include <time.h>
-#define usleep(t) nanosleep((const struct timespec[]){{0, t * 1000L}}, NULL)
+#define nsleep(t) nanosleep((const struct timespec[]){{0, t * 1000L}}, NULL)
#define INPUT_FILE_PATH "6502_functional_test.bin"
@@ -21,7 +21,7 @@
static bool brk = false;
void CPU_brk(uint16_t pc) {
- if(CPU_get_pc() == pc) {
+ if (CPU_get_pc () == pc) {
printf("BRK: %2X reached\n", pc);
brk = true;
}
@@ -31,7 +31,7 @@ void sig_handler(int signo) {
if (signo == SIGINT) brk = true;
}
-int main (void) {
+int main(void) {
INS ins;
/* Initialize memory to 0 */
@@ -52,8 +52,8 @@ int main (void) {
set_input_mode();
signal(SIGINT, sig_handler);
- signal (SIGQUIT, sig_handler);
- atexit (reset_input_mode);
+ signal(SIGQUIT, sig_handler);
+ atexit(reset_input_mode);
do {
/* set break point at pc 0x336d */