Meta CPU definitions
[ScratchNES.git] / src / CPU / meta.tosh
1 define mapper read (location)
2 set M to 255
3
4 define mapper write (location) (value)
5
6 define flagZ
7 set flagZ to <A = 0>
8
9 define flagN
10 set flagN to <join "0x" (letter 1 of A) > 7 >
11
12 define two2native
13 set tmp to A - 256 + (256 * <A < 128>)
14
15 define push (value)
16 mapper write 256 + S value
17 set S to (S - 1) mod 256
18
19 define interrupt
This page took 0.065168 seconds and 4 git commands to generate.