ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mon/src/mon.h
(Generate patch)

Comparing mon/src/mon.h (file contents):
Revision 1.5 by cebix, 2000-09-25T17:52:32Z vs.
Revision 1.8 by gbeauche, 2002-07-17T10:00:54Z

# Line 1 | Line 1
1   /*
2 < *  mon.h - mon main program
2 > *  mon.h - cxmon main program
3   *
4 < *  mon (C) 1997-2000 Christian Bauer, Marc Hellwig
4 > *  cxmon (C) 1997-2002 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
# Line 68 | Line 68 | enum Token {
68  
69   // Scanner variables
70   extern enum Token mon_token;                    // Last token read
71 < extern uint32 mon_number;                               // Contains the number if mon_token==T_NUMBER
71 > extern uintptr mon_number;                              // Contains the number if mon_token==T_NUMBER
72   extern char mon_string[INPUT_LENGTH];   // Contains the string if mon_token==T_STRING
73   extern char mon_name[INPUT_LENGTH];             // Contains the variable name if mon_token==T_NAME
74  
# Line 76 | Line 76 | extern char mon_name[INPUT_LENGTH];            //
76   extern FILE *monin, *monout, *monerr;
77  
78   // Current address, value of '.' in expressions
79 < extern uint32 mon_dot_address;
79 > extern uintptr mon_dot_address;
80  
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)
# Line 89 | Line 89 | extern void mon_add_command(const char *
89   // Functions for commands
90   extern void mon_error(const char *s);                   // Print error message
91   extern enum Token mon_get_token(void);                  // Get next token
92 < extern bool mon_expression(uint32 *number);             // Parse expression
92 > extern bool mon_expression(uintptr *number);    // Parse expression
93   extern bool mon_aborted(void);                                  // Check if Ctrl-C was pressed
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);
101 < extern void mon_write_word(uint32 adr, uint32 l);
96 > extern uint32 (*mon_read_byte)(uintptr adr);
97 > extern void (*mon_write_byte)(uintptr adr, uint32 b);
98 > extern uint32 mon_read_half(uintptr adr);
99 > extern void mon_write_half(uintptr adr, uint32 w);
100 > extern uint32 mon_read_word(uintptr adr);
101 > extern void mon_write_word(uintptr adr, uint32 l);
102  
103   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines