Mercurial > repos > blastem
annotate blastem.h @ 254:64feb6b67244
Fix bug in end condition inside translate_z80_stream.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 29 Apr 2013 22:37:47 -0700 |
parents | 209a37eed3e7 |
children | a8ee7934a1f8 |
rev | line source |
---|---|
66 | 1 #ifndef BLASTEM_H_ |
2 #define BLASTEM_H_ | |
3 | |
75 | 4 #include <stdint.h> |
198
209a37eed3e7
Add support for breaking into the debugger while game is running
Mike Pavone <pavone@retrodev.com>
parents:
75
diff
changeset
|
5 #include "m68k_to_x86.h" |
75 | 6 |
66 | 7 typedef struct { |
8 uint32_t th_counter; | |
9 uint32_t timeout_cycle; | |
10 uint8_t output; | |
11 uint8_t control; | |
12 uint8_t input[3]; | |
13 } io_port; | |
14 | |
15 #define GAMEPAD_TH0 0 | |
16 #define GAMEPAD_TH1 1 | |
17 #define GAMEPAD_EXTRA 2 | |
18 | |
19 extern io_port gamepad_1; | |
20 extern io_port gamepad_2; | |
21 | |
22 void io_adjust_cycles(io_port * pad, uint32_t current_cycle, uint32_t deduction); | |
75 | 23 uint16_t read_dma_value(uint32_t address); |
198
209a37eed3e7
Add support for breaking into the debugger while game is running
Mike Pavone <pavone@retrodev.com>
parents:
75
diff
changeset
|
24 m68k_context * debugger(m68k_context * context, uint32_t address); |
66 | 25 |
26 #endif //BLASTEM_H_ | |
27 |