uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 44a7f5ef0eed389b2d169e5d86e71ffdbd513a36
parent 031f63a13c3e78c1c022b6eed4bac0ad909e9a9a
Author: neauoire <aliceffekt@gmail.com>
Date:   Thu, 13 Jan 2022 08:26:35 -0800

Removed old debug files

Diffstat:
Dsrc/devices/debug.c | 50--------------------------------------------------
Dsrc/devices/debug.h | 20--------------------
2 files changed, 0 insertions(+), 70 deletions(-)

diff --git a/src/devices/debug.c b/src/devices/debug.c @@ -1,50 +0,0 @@ -#include <stdio.h> - -#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 @@ -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