9 Register::data_size_e
Register::get_register_size() const {
10 #if AESALON_PLATFORM == AESALON_PLATFORM_x86 || AESALON_PLATFORM_x86_64
35 #if AESALON_PLATFORM == AESALON_PLATFORM_x86_64
62 Register
Register::from_string(std::string string
) {
63 std::map
<std::string
, register_e
> reg_map
;
100 reg_map
["rsp"] = RSP
;
101 reg_map
["rbp"] = RBP
;
102 reg_map
["rip"] = RIP
;
106 for(std::string::iterator i
= string
.begin(); i
!= string
.end(); i
++) {
107 (*i
) = std::tolower(*i
);
110 return reg_map
[string
];
114 } // namespace Monitor
115 } // namespace Aesalon