-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstate.h
60 lines (49 loc) · 1.04 KB
/
state.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include "comm.h"
struct cpu_states_t {
uint16_t reg_pc;
uint8_t reg_a;
uint8_t reg_ps;
uint8_t reg_x;
uint8_t reg_y;
uint8_t reg_sp;
};
struct nc1020_states_t{
uint32_t version;
////////////cpu_states_t cpu;
uint8_t ram_io[0x40*2];
uint8_t ram_b[0x2000];
uint8_t ram[0x8000*2];
uint8_t ext_ram[0x8000];
//uint8_t bak_40[0x40];
uint8_t clock_buff[80];
uint8_t clock_flags;
uint8_t rtc_reg[256];
uint8_t interr_flag;
uint8_t jg_wav_data[0x20];
uint8_t jg_wav_flags;
uint8_t jg_wav_idx;
bool jg_wav_playing;
uint8_t fp_step;
uint8_t fp_type;
//uint8_t fp_bank_idx;
//uint8_t fp_bak1;
//uint8_t fp_bak2;
//uint8_t fp_buff[0x100];
bool slept;
bool should_wake_up;
bool pending_wake_up;
uint8_t wake_up_flags;
bool timer0_toggle;
uint64_t cycles;
uint64_t last_cycles;
uint64_t unknown_timer_cycles;
uint64_t timer0_cycles;
uint64_t timer1_cycles;
uint64_t timebase_cycles;
uint64_t nmi_cycles;
/////////bool should_irq;
//uint32_t lcd_addr;
uint8_t keypad_matrix[8];
bool grey_mode;
//long long previous_cycles;
};