}
         }
         0x6: decode TOPCODE_12_11 {
-            0x0: WarnUnimpl::stm(); // also stmia, stmea
-            0x1: WarnUnimpl::ldm(); // also ldmia, ldmea
+            0x0, 0x1: Thumb16MacroMem::thumb16MacroMem();
             default: decode TOPCODE_11_8 {
                 0xe: WarnUnimpl::undefined(); // permanently undefined
                 0xf: WarnUnimpl::svc(); // formerly swi
 
                       PSRUSER, WRITEBACK, LOADOP, machInst.regList);
     '''
 }};
+
+def format Thumb16MacroMem() {{
+    decode_block = '''
+    {
+        const IntRegIndex rn = (IntRegIndex)(uint32_t)bits(machInst, 10, 8);
+        const bool load = (bits(machInst, 11) == 1);
+        const uint32_t regList = bits(machInst, 7, 0);
+        const bool writeback = (!load || bits(regList, rn) == 0);
+        return new LdmStm(machInst, rn, true, true, false,
+                          writeback, load, regList);
+    }
+    '''
+}};