implementation of the OS_Z502 project (homepage :http://web.cs.wpi.edu/~jb/CS502/Project/project_home.html )