Mercurial > repos > blastem
comparison blastem.h @ 198:209a37eed3e7
Add support for breaking into the debugger while game is running
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 20 Jan 2013 19:10:29 -0800 |
parents | 108e587165c0 |
children | a8ee7934a1f8 |
comparison
equal
deleted
inserted
replaced
197:7c227a8ec53d | 198:209a37eed3e7 |
---|---|
1 #ifndef BLASTEM_H_ | 1 #ifndef BLASTEM_H_ |
2 #define BLASTEM_H_ | 2 #define BLASTEM_H_ |
3 | 3 |
4 #include <stdint.h> | 4 #include <stdint.h> |
5 #include "m68k_to_x86.h" | |
5 | 6 |
6 typedef struct { | 7 typedef struct { |
7 uint32_t th_counter; | 8 uint32_t th_counter; |
8 uint32_t timeout_cycle; | 9 uint32_t timeout_cycle; |
9 uint8_t output; | 10 uint8_t output; |
18 extern io_port gamepad_1; | 19 extern io_port gamepad_1; |
19 extern io_port gamepad_2; | 20 extern io_port gamepad_2; |
20 | 21 |
21 void io_adjust_cycles(io_port * pad, uint32_t current_cycle, uint32_t deduction); | 22 void io_adjust_cycles(io_port * pad, uint32_t current_cycle, uint32_t deduction); |
22 uint16_t read_dma_value(uint32_t address); | 23 uint16_t read_dma_value(uint32_t address); |
24 m68k_context * debugger(m68k_context * context, uint32_t address); | |
23 | 25 |
24 #endif //BLASTEM_H_ | 26 #endif //BLASTEM_H_ |
25 | 27 |