Meta addressing script
[ScratchNES.git] / src / CPU / addressing / meta.tosh
1 define mapper read (location)
2 set M to 255
3
4 define immediate
5 mapper read PC+1
6
7 define zeropage
8 mapper read PC+1
9 mapper read M
10
11 define zeropageX
12 mapper read PC+1
13 mapper read M + X mod 256
14
15 define zeropageY
16 mapper read PC+1
17 mapper read M + Y mod 256
18
19 define absolute
20 mapper read PC+1
21 set tmp to M
22 mapper read PC+2
23 mapper read tmp * 256 + M
24
25 define absoluteX
26 mapper read PC+1
27 set tmp to M
28 mapper read PC+2
29 mapper read tmp * 256 + M + X
30
31 define absoluteY
32 mapper read PC+1
33 set tmp to M
34 mapper read PC+2
35 mapper read tmp * 256 + M + Y
36
37 define implied
38
39 define indirect
40 mapper read PC+1
41 set tmp to M
42 mapper read PC+2
43 mapper read tmp * 256 + M
44 set tmp2 to M
45 mapper read tmp * 256 + M + 1
46 mapper read tmp2 * 256 + M
47
48 define indirectX
49 mapper read PC+1
50 mapper read (M + X) mod 256
51
52 define indirectY
53 mapper read PC+1
54 mapper read M
55 mapper read M + Y + flagC
This page took 0.067798 seconds and 4 git commands to generate.