li386 write simulation in C for oppie-1, coded but not tested or debugged