partial implementation for M26C