Fix crash on too small ROMs. (I suspect it uses uninitialized stack memory gets different values for byte 0x147.)
Make sure the weird rounding doesn't screw things up.
Merge pull request #32 from Alcaro/master

Fix assertion failure on too small ROMs.