The overall intent is to make writing a decompiler require less code duplication. "bits.hpp" and "stmt_enum.hpp" are replaced with "stmt_ins.hpp" which is generated directly from dsp-notes.csv.
41 lines
694 B
C++
41 lines
694 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace dsp {
|
|
|
|
namespace op {
|
|
|
|
extern const std::string alu_type_string[];
|
|
extern const std::string x_src_string[];
|
|
extern const std::string y_src_string[];
|
|
extern const std::string d1_dst_string[];
|
|
extern const std::string d1_src_string[];
|
|
|
|
}
|
|
|
|
namespace load {
|
|
|
|
extern const std::string dst_string[];
|
|
extern const std::string cond_string[];
|
|
|
|
} // load
|
|
|
|
namespace dma {
|
|
|
|
extern const std::string hold_mode_string[];
|
|
extern const std::string add_mode_string[];
|
|
extern const std::string src_string[];
|
|
extern const std::string dst_string[];
|
|
extern const std::string length_ram_string[];
|
|
|
|
} // dma
|
|
|
|
namespace jump {
|
|
|
|
extern const std::string cond_string[];
|
|
|
|
}
|
|
|
|
}
|