From c82c1828b09a5053d436cee5485c299c665ec0bc Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Sun, 15 Apr 2018 23:31:29 -0500 Subject: [PATCH] Remove unused grid file; resolve crash condition --- src/apple2/grid.c | 11 ----------- tests/apple2/apple2.c | 2 ++ 2 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 src/apple2/grid.c diff --git a/src/apple2/grid.c b/src/apple2/grid.c deleted file mode 100644 index cc55ebc..0000000 --- a/src/apple2/grid.c +++ /dev/null @@ -1,11 +0,0 @@ -/* - * apple2.grid.c - * - * Each of the display modes in the Apple II work off of a grid, but the - * grids are generally interleaved, so there's no simple formula to - * follow. - * - * In here we define tables which map addresses to rows or columns - * within a grid, and some functions to pull that information from those - * tables. - */ diff --git a/tests/apple2/apple2.c b/tests/apple2/apple2.c index 8f6b9a5..75e4bae 100644 --- a/tests/apple2/apple2.c +++ b/tests/apple2/apple2.c @@ -11,12 +11,14 @@ void setup() { mach = apple2_create(700, 480); + vm_di_set(VM_MACHINE, mach); } void teardown() { apple2_free(mach); + vm_di_set(VM_MACHINE, NULL); } TestSuite(apple2, .init = setup, .fini = teardown);