21 |
|
#ifndef MON_H |
22 |
|
#define MON_H |
23 |
|
|
24 |
+ |
#include <stdio.h> |
25 |
+ |
|
26 |
+ |
|
27 |
+ |
/* |
28 |
+ |
* Version information |
29 |
+ |
*/ |
30 |
+ |
|
31 |
+ |
const int MON_VERSION_MAJOR = 2; |
32 |
+ |
const int MON_VERSION_MINOR = 2; |
33 |
+ |
|
34 |
|
|
35 |
|
/* |
36 |
|
* Initialization, deinitialization and invocation |
97 |
|
extern enum Token mon_get_token(void); // Get next token |
98 |
|
extern bool mon_expression(uint32 *number); // Parse expression |
99 |
|
extern bool mon_aborted(void); // Check if Ctrl-C was pressed |
100 |
< |
extern uint32 mon_read_byte(uint32 adr); // Memory access |
101 |
< |
extern void mon_write_byte(uint32 adr, uint32 b); |
100 |
> |
|
101 |
> |
// Memory access |
102 |
> |
extern uint32 (*mon_read_byte)(uint32 adr); |
103 |
> |
extern void (*mon_write_byte)(uint32 adr, uint32 b); |
104 |
|
extern uint32 mon_read_half(uint32 adr); |
105 |
|
extern void mon_write_half(uint32 adr, uint32 w); |
106 |
|
extern uint32 mon_read_word(uint32 adr); |