summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/m6502/om740.lst
blob: 642bd45ed5fe10555090572f127b3b81082e947c (plain) (blame)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# m740 opcodes
set_imp
	read_pc_noinc();
	P |= F_T;
	prefetch();

clt_imp
	read_pc_noinc();
	P &= ~F_T;
	prefetch();

ldm_imz
	TMP = read_pc();
	TMP2 = read_pc();
	write(TMP2, TMP);
	prefetch();

jsr_spg
	TMP = read_pc_noinc();
	read(SP);
	write(SP, PC>>8);
	dec_SP();
	write(SP, PC);
	dec_SP();
	TMP = set_h(TMP, 0xff);
	PC = TMP;
	prefetch();

clb_acc
	read_pc_noinc();
	A = do_clb(A, (IR>>5) & 7);
	prefetch();

seb_acc
	read_pc_noinc();
	A = do_seb(A, (IR>>5) & 7);
	prefetch();

clb_biz
	TMP = read_pc();
	TMP2 = read(TMP);
	TMP2 = do_clb(TMP2, (IR>>5) & 7);
	write(TMP, TMP2);
	prefetch();

seb_biz
	TMP = read_pc();
	TMP2 = read(TMP);
	TMP2 = do_seb(TMP2, (IR>>5) & 7);
	write(TMP, TMP2);
	prefetch();

bbc_biz
	TMP = read_pc();
	TMP2 = read(TMP);
	TMP = read_pc();
	read_pc_noinc();
	if(!(TMP2 & (1 << ((IR>>5) & 7)))) {
		PC += INT8(TMP);
	}
	prefetch();

bbs_biz
	TMP = read_pc();
	TMP2 = read(TMP);
	TMP = read_pc();
	read_pc_noinc();
	if(TMP2 & (1 << ((IR>>5) & 7))) {
		PC += INT8(TMP);
	}
	prefetch();

bbc_acc
	TMP = read_pc();
	read_pc_noinc();
	if(!(A & (1 << ((IR>>5) & 7)))) {
		PC += INT8(TMP);
	}
	prefetch();

bbs_acc
	TMP = read_pc();
	read_pc_noinc();
	if(A & (1 << ((IR>>5) & 7))) {
		PC += INT8(TMP);
	}
	prefetch();

rrf_zpg
	TMP = read_pc();
	TMP2 = read(TMP);
	TMP2 = do_rrf(TMP2);
	write(TMP, TMP2);
	prefetch();

bra_rel
	TMP = read_pc();
	read_pc_noinc();
	if(page_changing(PC, INT8(TMP))) {
		read_direct(set_l(PC, PC+INT8(TMP)));
	}
	PC += INT8(TMP);
	prefetch();

reset740
	PC = read_direct(0xfffe);
	PC = set_h(PC, read_direct(0xffff));
	prefetch();
	inst_state = -1;