The memory system is already implemented (in C++), and can be downloaded here: 点击打开链接.
reference:
1. http://www.binarytides.com/data-type-u_int8_t-u_int16_t-u_int32_t-on-windows/
2. http://cseweb.ucsd.edu/classes/wi13/cse240a/Projects/project1.html