Mercurial > repos > blastem
comparison stateview.c @ 1101:e2d345e351b5
Update stateview so it builds successfully again
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 15 Nov 2016 08:18:57 -0800 |
parents | 56b1748a8473 |
children | 22e87b739ad6 |
comparison
equal
deleted
inserted
replaced
1100:653558f6fa7a | 1101:e2d345e351b5 |
---|---|
8 #include "vdp.h" | 8 #include "vdp.h" |
9 #include "render.h" | 9 #include "render.h" |
10 #include "util.h" | 10 #include "util.h" |
11 #include "blastem.h" | 11 #include "blastem.h" |
12 | 12 |
13 //not used, but referenced by the renderer since it handles input | |
14 io_port gamepad_1; | |
15 io_port gamepad_2; | |
16 uint8_t reset = 1; | |
17 uint8_t busreq = 0; | |
18 | |
19 uint8_t z80_ram[Z80_RAM_BYTES]; | |
20 | 13 |
21 uint16_t read_dma_value(uint32_t address) | 14 uint16_t read_dma_value(uint32_t address) |
22 { | 15 { |
23 return 0; | 16 return 0; |
24 } | 17 } |
120 init_vdp_context(&context, 0); | 113 init_vdp_context(&context, 0); |
121 vdp_load_gst(&context, state_file); | 114 vdp_load_gst(&context, state_file); |
122 vdp_run_to_vblank(&context); | 115 vdp_run_to_vblank(&context); |
123 vdp_print_sprite_table(&context); | 116 vdp_print_sprite_table(&context); |
124 printf("Display %s\n", (context.regs[REG_MODE_2] & DISPLAY_ENABLE) ? "enabled" : "disabled"); | 117 printf("Display %s\n", (context.regs[REG_MODE_2] & DISPLAY_ENABLE) ? "enabled" : "disabled"); |
125 render_context(&context); | |
126 render_wait_quit(&context); | 118 render_wait_quit(&context); |
127 return 0; | 119 return 0; |
128 } | 120 } |