something I threw together in a few days for Digital computer architecture class, the language is java for ease, and it's admittedly a little sloppy