Finished copying all MEM functions

- Copied over all Memory functions and all builds okay
- Some lines were commented out (like joystick input and
tn.AddCpuCycles) so code would build
- Added NMI Handler code to CPU.cpp