blob: f09d8f7d5f100193966587c42bdd6ecfb956df8b (
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));
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));
read_9(set_l(TMP, TMP+Y));
write_9(TMP+Y, A);
prefetch();
|