I found a bug, if not enough RAM is available, so it is fixed.
I did not fixed the mouse bug at 10MHz, I don't know, what the B register should be at M_WAIT_LOOP.
I attached the source, you can compile it with sjasm, the AMOEBA.COM (attached in previous zip) is needed for the compilation.
gflorez, can you do some tests with higher B values at 10MHz?