Fixed memory read, added BRK and CMP.