- // index size type name regMask offset isFree symbol
- {0x20, 2, REG_SCR, "r0", 0x0003, 0, 1, NULL}, // r0 used for scratch
- {0x21, 2, REG_SCR, "r1", 0x000c, 2, 1, NULL}, // r1 used for scratch
- {0x22, 2, REG_PTR, "r2", 0x0030, 4, 1, NULL},
- {0x23, 2, REG_PTR, "r3", 0x00c0, 6, 1, NULL},
- {0x24, 2, REG_PTR, "r4", 0x0300, 8, 1, NULL},
- {0x25, 2, REG_PTR, "r5", 0x0c00, 10, 1, NULL},
- {0x26, 2, REG_PTR, "r6", 0x3000, 12, 1, NULL},
- {0x27, 2, REG_STK, "r7", 0xc000, 14, 1, NULL}, // r7=SP
+ // index size type name regMask isFree symbol
+ {R0L_ID, 1, REG_SCR, "r0l", 0x0001, 1, NULL}, // r0l used for scratch
+ {R0H_ID, 1, REG_SCR, "r0h", 0x0002, 1, NULL}, // r0h used for scratch
+ {R1L_ID, 1, REG_SCR, "r1l", 0x0004, 1, NULL}, // r1l used for scratch
+ {R1H_ID, 1, REG_SCR, "r1h", 0x0008, 1, NULL}, // r1h used for scratch
+ {R2L_ID, 1, REG_PTR, "r2l", 0x0010, 1, NULL},
+ {R2H_ID, 1, REG_PTR, "r2h", 0x0020, 1, NULL},
+ {R3L_ID, 1, REG_PTR, "r3l", 0x0040, 1, NULL},
+ {R3H_ID, 1, REG_PTR, "r3h", 0x0080, 1, NULL},
+ {R4L_ID, 1, REG_PTR, "r4l", 0x0100, 1, NULL},
+ {R4H_ID, 1, REG_PTR, "r4h", 0x0200, 1, NULL},
+ {R5L_ID, 1, REG_PTR, "r5l", 0x0400, 1, NULL},
+ {R5H_ID, 1, REG_PTR, "r5h", 0x0800, 1, NULL},
+ {R6L_ID, 1, REG_PTR, "r6l", 0x1000, 1, NULL},
+ {R6H_ID, 1, REG_PTR, "r6h", 0x2000, 1, NULL},
+ {R7L_ID, 1, REG_STK, "r7l", 0x4000, 1, NULL}, // r7=SP
+ {R7H_ID, 1, REG_STK, "r7h", 0x8000, 1, NULL}, // r7=SP
+
+ {R0_ID, 2, REG_SCR, "r0", 0x0003, 1, NULL}, // r0 used for scratch
+ {R1_ID, 2, REG_SCR, "r1", 0x000c, 1, NULL}, // r1 used for scratch
+ {R2_ID, 2, REG_PTR, "r2", 0x0030, 1, NULL},
+ {R3_ID, 2, REG_PTR, "r3", 0x00c0, 1, NULL},
+ {R4_ID, 2, REG_PTR, "r4", 0x0300, 1, NULL},
+ {R5_ID, 2, REG_PTR, "r5", 0x0c00, 1, NULL},
+ {R6_ID, 2, REG_PTR, "r6", 0x3000, 1, NULL},
+ {R7_ID, 2, REG_STK, "r7", 0xc000, 1, NULL}, // r7=SP