summaryrefslogtreecommitdiffhomepage
path: root/asm/parse.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-21 15:19:45 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-21 15:19:45 +0100
commit7edbd99775416a32c88acf8e9379518436905f02 (patch)
tree6356edb79f846df4aa2f6a8a5ecfeef4e651bcc0 /asm/parse.cpp
parent7250bbe5ae2d2ee6b0334bc462aab73f7d8dac0e (diff)
Support gcc 10 and clang 11
Diffstat (limited to 'asm/parse.cpp')
-rw-r--r--asm/parse.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/asm/parse.cpp b/asm/parse.cpp
index 8f6f831..28e79f3 100644
--- a/asm/parse.cpp
+++ b/asm/parse.cpp
@@ -20,6 +20,13 @@ namespace {
"dl", "dh",
};
+ std::unordered_set<std::string> reg16 {
+ "ax", "sp",
+ "bx", "bp",
+ "cx", "si",
+ "dx", "di",
+ };
+
std::unordered_set<std::string> reg32 {
"eax", "esp",
"ebx", "ebp",