Mercurial > repos > blastem
comparison blastem.h @ 75:108e587165c0
Implement DMA (untested)
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 21 Dec 2012 20:56:32 -0800 |
parents | 7a22a0e6c004 |
children | 209a37eed3e7 |
comparison
equal
deleted
inserted
replaced
74:6396dc91f61e | 75:108e587165c0 |
---|---|
1 #ifndef BLASTEM_H_ | 1 #ifndef BLASTEM_H_ |
2 #define BLASTEM_H_ | 2 #define BLASTEM_H_ |
3 | |
4 #include <stdint.h> | |
3 | 5 |
4 typedef struct { | 6 typedef struct { |
5 uint32_t th_counter; | 7 uint32_t th_counter; |
6 uint32_t timeout_cycle; | 8 uint32_t timeout_cycle; |
7 uint8_t output; | 9 uint8_t output; |
15 | 17 |
16 extern io_port gamepad_1; | 18 extern io_port gamepad_1; |
17 extern io_port gamepad_2; | 19 extern io_port gamepad_2; |
18 | 20 |
19 void io_adjust_cycles(io_port * pad, uint32_t current_cycle, uint32_t deduction); | 21 void io_adjust_cycles(io_port * pad, uint32_t current_cycle, uint32_t deduction); |
22 uint16_t read_dma_value(uint32_t address); | |
20 | 23 |
21 #endif //BLASTEM_H_ | 24 #endif //BLASTEM_H_ |
22 | 25 |