ldm and stm written, not working yet