asm: implement WRITE/READ
sim: implement READ/WRITE and add debug output