diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-11-12 17:13:40 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-11-12 17:13:40 +0900 |
commit | 95c0c4e6feb1037226b36708aa9cc5a390dfa0a9 (patch) | |
tree | 0e04551270d31d1f9d89ada8f9c7699a060076a1 /gen | |
parent | f5fda7ace8ec04efd30e47266278ef65fc864bb6 (diff) | |
download | xbyak-95c0c4e6feb1037226b36708aa9cc5a390dfa0a9.tar.gz xbyak-95c0c4e6feb1037226b36708aa9cc5a390dfa0a9.zip |
tweak inc/dec
Diffstat (limited to 'gen')
-rw-r--r-- | gen/gen_code.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gen/gen_code.cpp b/gen/gen_code.cpp index c845119..380defd 100644 --- a/gen/gen_code.cpp +++ b/gen/gen_code.cpp @@ -835,16 +835,15 @@ void put() { const struct Tbl { - uint8_t code; uint8_t ext; const char *name; } tbl[] = { - { 0x48, 1, "dec" }, - { 0x40, 0, "inc" }, + { 1, "dec" }, + { 0, "inc" }, }; for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) { const Tbl *p = &tbl[i]; - printf("void %s(const Operand& op) { opIncDec(op, 0x%02X, %d); }\n", p->name, p->code, p->ext); + printf("void %s(const Operand& op) { opIncDec(op, %d); }\n", p->name, p->ext); } } { |