/* we may emit any of these types of messages */
enum dcpu16_msg_type {
- MSG_ERROR = 0,
- MSG_INFO,
- MSG_DEBUG
+ DCPU16_MSG_ERROR = 0,
+ DCPU16_MSG_INFO,
+ DCPU16_MSG_DEBUG
};
/* update the default message handler */
dcpu16_msg_cb_t *dcpu16_msg_set_default(dcpu16_msg_cb_t *);
-/*
-extern dcpu16_msg_cb_t *dcpu16_msg;
-*/
+/* hardware devices may want to call this directly, without a core context */
+extern dcpu16_msg_cb_t *dcpu16_msg_;
/* a self-contained dcpu16 core */
struct dcpu16 {