1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,50 +0,0 @@ |
1 |
-#include <stdio.h> |
|
2 |
- |
|
3 |
-#include "../uxn.h" |
|
4 |
-#include "debug.h" |
|
5 |
- |
|
6 |
-/* |
|
7 |
-Copyright (c) 2021 Devine Lu Linvega |
|
8 |
-Copyright (c) 2021 Andrew Alderwick |
|
9 |
- |
|
10 |
-Permission to use, copy, modify, and distribute this software for any |
|
11 |
-purpose with or without fee is hereby granted, provided that the above |
|
12 |
-copyright notice and this permission notice appear in all copies. |
|
13 |
- |
|
14 |
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
|
15 |
-WITH REGARD TO THIS SOFTWARE. |
|
16 |
-*/ |
|
17 |
- |
|
18 |
-static void |
|
19 |
-inspect(Stack *s, char *name) |
|
20 |
-{ |
|
21 |
- Uint8 x, y; |
|
22 |
- fprintf(stderr, "\n%s\n", name); |
|
23 |
- for(y = 0; y < 0x04; y++) { |
|
24 |
- for(x = 0; x < 0x08; x++) { |
|
25 |
- Uint8 p = y * 0x08 + x; |
|
26 |
- fprintf(stderr, |
|
27 |
- p == s->ptr ? "[%02x]" : " %02x ", |
|
28 |
- s->dat[p]); |
|
29 |
- } |
|
30 |
- fprintf(stderr, "\n"); |
|
31 |
- } |
|
32 |
-} |
|
33 |
- |
|
34 |
-/* IO */ |
|
35 |
- |
|
36 |
-Uint8 |
|
37 |
-debug_dei(Device *d, Uint8 port) |
|
38 |
-{ |
|
39 |
- DebugDevice *debug = (DebugDevice *)d; |
|
40 |
- return d->dat[port]; |
|
41 |
-} |
|
42 |
- |
|
43 |
-void |
|
44 |
-debug_deo(Device *d, Uint8 port) |
|
45 |
-{ |
|
46 |
- (void)d; |
|
47 |
- (void)port; |
|
48 |
- inspect(&d->u->wst, "Working-stack"); |
|
49 |
- inspect(&d->u->rst, "Return-stack"); |
|
50 |
-} |
51 | 0 |
deleted file mode 100644 |
... | ... |
@@ -1,19 +0,0 @@ |
1 |
-/* |
|
2 |
-Copyright (c) 2021 Devine Lu Linvega |
|
3 |
-Copyright (c) 2021 Andrew Alderwick |
|
4 |
- |
|
5 |
-Permission to use, copy, modify, and distribute this software for any |
|
6 |
-purpose with or without fee is hereby granted, provided that the above |
|
7 |
-copyright notice and this permission notice appear in all copies. |
|
8 |
- |
|
9 |
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
|
10 |
-WITH REGARD TO THIS SOFTWARE. |
|
11 |
-*/ |
|
12 |
- |
|
13 |
-typedef struct DebugDevice { |
|
14 |
- Device device; |
|
15 |
- struct UxnScreen *screen; |
|
16 |
-} DebugDevice; |
|
17 |
- |
|
18 |
-Uint8 debug_dei(Device *d, Uint8 port); |
|
19 |
-void debug_deo(Device *d, Uint8 port); |
|
20 | 0 |
\ No newline at end of file |