Trouble with SPI interfaced SRAM chip

This is what I get using your code after changing SPI_MODE0 to SPI_MODE3:

Memory status:
20 10101010
21 10101010
22 10101010
23 10101010
400 10101010
401 10101010
402 10101010
403 10101010

Now that it works, how do you plan to keep track of variables as you store them? Storing bytes is not very usable unless you convert them to ints or longs... ...unless for text or images

I don't get it - I worked on something else and then went back to it (had to rewire it) and now it doesn't work....

I rewire again with shorter wires (noise issue), use the default SPI speed (/ by 4) and changed the 0x00 to 0xFF on reads

results:
Memory status:
0 0x0 0b10101010
1 0x1 0b10101010
2 0x2 0b10101010
3 0x3 0b10101010
4 0x4 0b10101010
5 0x5 0b10101010
6 0x6 0b10101010
7 0x7 0b10101010
8 0x8 0b10101010
9 0x9 0b10101010
10 0xA 0b10101010
11 0xB 0b10101010
12 0xC 0b10101010
13 0xD 0b10101010
14 0xE 0b10101010
15 0xF 0b10101010
16 0x10 0b10101010
17 0x11 0b10101010
18 0x12 0b10101010
19 0x13 0b10101010
20 0x14 0b10101010
21 0x15 0b10101010
22 0x16 0b10101010
23 0x17 0b10101010
24 0x18 0b10101010
25 0x19 0b10101010
26 0x1A 0b10101010
27 0x1B 0b10101010
28 0x1C 0b10101010
29 0x1D 0b10101010
30 0x1E 0b10101010
31 0x1F 0b10101010
freeRam(): 1767

...but it still has problems - it works very well 9 out of 10 times when reading/writing 1024 bytes - I'll have to read the specs again and again... let me know what you find out - thanks