summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6502/om6509.lst
blob: 8c9a6f9baa1f8072293efbdcb1b359403b72fcf7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# license:BSD-3-Clause
# copyright-holders:Olivier Galibert
# 6509 opcodes

lda_9_idy
	TMP2 = read_pc();
	TMP = read(TMP2);
	TMP = set_h(TMP, read((TMP2+1) & 0xff));
	if(page_changing(TMP, Y)) {
		read_9(set_l(TMP, TMP+Y));
	}
	A = read_9(TMP+Y);
	set_nz(A);
	prefetch();

sta_9_idy
	TMP2 = read_pc();
	TMP = read(TMP2);
	TMP = set_h(TMP, read((TMP2+1) & 0xff));
	read_9(set_l(TMP, TMP+Y));
	write_9(TMP+Y, A);
	prefetch();