Skip to content

Commit 07e7e4f

Browse files
committed
add Cortex-M specific flag table
1 parent 1ea6fb1 commit 07e7e4f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

archs/arm-cortex-m.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@
77
Author: SWW13
88
"""
99

10+
1011
@register_architecture
1112
class ARM_M(ARM):
1213
arch = "ARM-M"
1314
aliases = ("ARM-M", )
1415

15-
all_registers = ARM.all_registers[:-1] + ["$xpsr",]
16+
all_registers = ARM.all_registers[:-1] + ["$xpsr", ]
1617
flag_register = "$xpsr"
17-
18+
flags_table = {
19+
31: "negative",
20+
30: "zero",
21+
29: "carry",
22+
28: "overflow",
23+
24: "thumb",
24+
}

0 commit comments

Comments
 (0)