summaryrefslogtreecommitdiff
path: root/stateview.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-21 20:56:32 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-21 20:56:32 -0800
commit8ac9006be0170d550147873ca1f5169f3a443149 (patch)
treee0fc50dded3d28356418d4a39a94f606fae4fc3b /stateview.c
parent30e36fd405aa5d8879ac9992d4ed9f44da5aa5ba (diff)
Implement DMA (untested)
Diffstat (limited to 'stateview.c')
-rw-r--r--stateview.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/stateview.c b/stateview.c
index c7b00a8..a7c030c 100644
--- a/stateview.c
+++ b/stateview.c
@@ -2,6 +2,16 @@
#include <stdio.h>
#include "vdp.h"
#include "render.h"
+#include "blastem.h"
+
+//not used, but referenced by the renderer since it handles input
+io_port gamepad_1;
+io_port gamepad_2;
+
+uint16_t read_dma_value(uint32_t address)
+{
+ return 0;
+}
int main(int argc, char ** argv)
{
@@ -28,6 +38,7 @@ int main(int argc, char ** argv)
init_vdp_context(&context);
vdp_load_savestate(&context, state_file);
vdp_run_to_vblank(&context);
+ printf("Display %s\n", (context.regs[REG_MODE_2] & DISPLAY_ENABLE) ? "enabled" : "disabled");
render_init(width, height);
render_context(&context);
render_wait_quit(&context);