From 44a7f5ef0eed389b2d169e5d86e71ffdbd513a36 Mon Sep 17 00:00:00 2001 From: neauoire Date: Thu, 13 Jan 2022 08:26:35 -0800 Subject: [PATCH] Removed old debug files --- src/devices/debug.c | 50 --------------------------------------------- src/devices/debug.h | 19 ----------------- 2 files changed, 69 deletions(-) delete mode 100644 src/devices/debug.c delete mode 100644 src/devices/debug.h diff --git a/src/devices/debug.c b/src/devices/debug.c deleted file mode 100644 index 2721134..0000000 --- a/src/devices/debug.c +++ /dev/null @@ -1,50 +0,0 @@ -#include - -#include "../uxn.h" -#include "debug.h" - -/* -Copyright (c) 2021 Devine Lu Linvega -Copyright (c) 2021 Andrew Alderwick - -Permission to use, copy, modify, and distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE. -*/ - -static void -inspect(Stack *s, char *name) -{ - Uint8 x, y; - fprintf(stderr, "\n%s\n", name); - for(y = 0; y < 0x04; y++) { - for(x = 0; x < 0x08; x++) { - Uint8 p = y * 0x08 + x; - fprintf(stderr, - p == s->ptr ? "[%02x]" : " %02x ", - s->dat[p]); - } - fprintf(stderr, "\n"); - } -} - -/* IO */ - -Uint8 -debug_dei(Device *d, Uint8 port) -{ - DebugDevice *debug = (DebugDevice *)d; - return d->dat[port]; -} - -void -debug_deo(Device *d, Uint8 port) -{ - (void)d; - (void)port; - inspect(&d->u->wst, "Working-stack"); - inspect(&d->u->rst, "Return-stack"); -} diff --git a/src/devices/debug.h b/src/devices/debug.h deleted file mode 100644 index e141bd9..0000000 --- a/src/devices/debug.h +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright (c) 2021 Devine Lu Linvega -Copyright (c) 2021 Andrew Alderwick - -Permission to use, copy, modify, and distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE. -*/ - -typedef struct DebugDevice { - Device device; - struct UxnScreen *screen; -} DebugDevice; - -Uint8 debug_dei(Device *d, Uint8 port); -void debug_deo(Device *d, Uint8 port); \ No newline at end of file