MicrOS
internal_funcs.h
Go to the documentation of this file.
1 #ifndef V8086_INTERNAL_FUNCS_H
2 #define V8086_INTERNAL_FUNCS_H
3 
4 #include <stdint.h>
5 
6 #define get_reg(mod_rm) ((uint8_t)(mod_rm >> 3u) & 7u)
7 
8 /*static inline uint8_t get_reg(uint8_t mod_rm)
9 {
10  return (uint8_t)(mod_rm >> 3u) & 7u;
11 }*/
12 
13 #endif //V8086_INTERNAL_FUNCS_H