vm-dcpu16 shell rewritten to be use command table
[dcpu16] / dcpu16.h
index f0e4d8b54abb2d19ead94757e3858949d7819cf8..edfccdfb53be7edbb1f0b41c7129c8fa0a736c11 100644 (file)
--- a/dcpu16.h
+++ b/dcpu16.h
@@ -22,6 +22,9 @@ struct dcpu16 {
 /* instantiate a new core */
 struct dcpu16 *dcpu16_new(void);
 
+/* reset a core to initial state */
+void dcpu16_reset(struct dcpu16 *);
+
 /* print the current state of a core */
 void dcpu16_state_print(struct dcpu16 *);
 
@@ -38,7 +41,7 @@ void dcpu16_step(struct dcpu16 *);
 /* release a core */
 void dcpu16_delete(struct dcpu16 **);
 
-/* register callbacks to handle warning and debug messages, defaults to writing to stderr */
+/* register callbacks to handle warning and debug messages, default is writing to stderr, may be set to null */
 void dcpu16_warn_cb_set(void (*)(char *, ...));
 void dcpu16_trace_cb_set(void (*)(char *, ...));