added lc3bsim3.c from Lab 3