The `exhaust' project is a redcode simulator that is (hopefully) easy to embed into your applications, as an alternative to pMARS.