Remove switch_memory
Fix double read_r bug, try and add undefined flags to INC/DEC