1 |
|
/* |
2 |
|
* mon.h - mon main program |
3 |
|
* |
4 |
< |
* mon (C) 1997-1999 Christian Bauer, Marc Hellwig |
4 |
> |
* mon (C) 1997-2000 Christian Bauer, Marc Hellwig |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
21 |
|
#ifndef MON_H |
22 |
|
#define MON_H |
23 |
|
|
24 |
+ |
#include <stdio.h> |
25 |
+ |
|
26 |
|
|
27 |
|
/* |
28 |
|
* Initialization, deinitialization and invocation |
81 |
|
extern bool mon_use_real_mem; // Flag: mon is using real memory |
82 |
|
extern uint32 mon_mem_size; // Size of mon buffer (if mon_use_real_mem = false) |
83 |
|
|
84 |
+ |
extern bool mon_macos_mode; // Flag: enable features in the disassembler for working with MacOS code |
85 |
+ |
|
86 |
|
// Add command to mon |
87 |
|
extern void mon_add_command(const char *name, void (*func)(void), const char *help_text); |
88 |
|
|
91 |
|
extern enum Token mon_get_token(void); // Get next token |
92 |
|
extern bool mon_expression(uint32 *number); // Parse expression |
93 |
|
extern bool mon_aborted(void); // Check if Ctrl-C was pressed |
94 |
< |
extern uint32 mon_read_byte(uint32 adr); // Memory access |
95 |
< |
extern void mon_write_byte(uint32 adr, uint32 b); |
94 |
> |
|
95 |
> |
// Memory access |
96 |
> |
extern uint32 (*mon_read_byte)(uint32 adr); |
97 |
> |
extern void (*mon_write_byte)(uint32 adr, uint32 b); |
98 |
|
extern uint32 mon_read_half(uint32 adr); |
99 |
|
extern void mon_write_half(uint32 adr, uint32 w); |
100 |
|
extern uint32 mon_read_word(uint32 adr); |