User manual
119
This function is used to read value from specified word register using specified addressing
mode (word or byte). Properly read byte or word is returned as a result of this call.
word_t write_reg(int adr, dword_t val, io_size_t type, word_t word)
Where,
adr - is the address of the register to write to;
val – is the data to write to specified location;
type - the type of required access (see io_size_t definition above);
word - word value represented our register within the emulation;
Macro definitions
A few macro definitions available in the library which simplifies messaging:
LOGMSG
The format is follows:
LOGMSG((_ERR_MSG_, <message_id>, <format string>, ...)) – log error message
LOGMSG((_WARN_MSG_, <message_id>, <format string>, ...)) – log warning message
LOGMSG((_INFO_MSG_, <message_id>, <format string>, ...)) – log information
message
TRACE
TRACE((L(k), <format string>, ...)),
where k in [0, 10] defines trace level.
All macro definitions can be redefined if necessary for particular device implementation.
C++ class templates
Only one class template is available for the moment template <class t> class l2list.
This template allows linking any particular C++ objects of the same type derived from this
template. The common way to use this template is as follows:
class my_data_t : public l2list<my_data_t> {
public:
my_data_t(my_data_t **list_entrance) {
this->append(*list_entrance, list_entrance);
}










