SimuS
A didatic processor simulator
...It is written in Object Pascal, and fully compatible with Lazarus framework. You can find the sources for the version compatible with Raspberry Pi at https://github.com/sottam/simus.
Check our new book: https://goo.gl/cSH6rU