/* Copyright Motorola, Inc. 1993, 1994 ALL RIGHTS RESERVED You are hereby granted a copyright license to use, modify, and distribute the SOFTWARE so long as this entire notice is retained without alteration in any modified and/or redistributed versions, and that such modified versions are clearly identified as such. No licenses are granted by implication, estoppel or otherwise under any patents or trademarks of Motorola, Inc. The SOFTWARE is provided on an "AS IS" basis and without warranty. To the maximum extent permitted by applicable law, MOTOROLA DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED, INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTY AGAINST INFRINGEMENT WITH REGARD TO THE SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF) AND ANY ACCOMPANYING WRITTEN MATERIALS. To the maximum extent permitted by applicable law, IN NO EVENT SHALL MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING OF THE USE OR INABILITY TO USE THE SOFTWARE. Motorola assumes no responsibility for the maintenance and support of the SOFTWARE. */ /* these are tag defines so that we can combine some of the parser routines together and not have so much code. For example go and trace need only one parser and they are similar (in the same functional group) so we can combine them together using GO_TAG and TRACE_TAG into one parser par_go_trace() */ #include "config.h" #include "errors.h" /* GO and TRACE tags */ #define GO_TAG 0 #define TRACE_TAG 1 /* Breakpoint set and del tags */ #define BREAK_SET_TAG 0 #define BREAK_DEL_TAG 1 #define BREAK_LIST_TAG 2 #define BREAK_ERROR 3 /* these are for register display and memory display and register MM and memory modify */ #define DISPLAY_TAG 0 #define MODIFY_TAG 1 /* these will help combine memfill and memsrch */ #define MEM_FILL_TAG 0 #define MEM_SRCH_TAG 1 #define MEM_COMP_TAG 2 #define CMD_TAG 9 #define NO_TAG 10 #define EXIT_TAG 11 #ifdef IN_PARSER #define WHERE #else #define WHERE extern #endif WHERE char alias_string[256]; #undef WHERE extern STATUS rd_IABR(); extern STATUS rd_FPSCR(); extern STATUS rd_MSR(); extern STATUS branchtable_list(); extern STATUS branchtable_init(); extern STATUS getarg_adr_int_brk(); extern STATUS breakpoint_set(); extern STATUS breakpoint_delete(); extern STATUS breakpoint_list(); extern STATUS getarg_adr(); extern STATUS go_trace(); extern STATUS read_from_screen_valid_address(); extern STATUS read_from_screen_long(); extern STATUS memory_display(); extern STATUS memory_modify(); extern STATUS getarg_adr_adr_data(); extern STATUS memory_compare(); extern STATUS memory_search(); extern STATUS memory_fill(); extern STATUS getarg_adr_adr_adr(); extern STATUS memory_move(); extern STATUS disassemble(); extern STATUS assemble(); extern STATUS download(); extern STATUS getarg_tok(); extern STATUS rdm_general(); extern STATUS rdm_fp(); extern STATUS rdm_v(); extern STATUS par_he(); extern STATUS menu(); extern STATUS transparent_mode(); extern STATUS read_from_screen_real_integer(); extern STATUS par_utdmv(); extern int Get_Baud_Rate();