blob: 4595827b1d78c3a6cf0e0cd6707e141b27c92a29 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# 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();
|