1
0
mirror of https://github.com/open-simh/simh.git synced 2026-04-25 20:01:33 +00:00

Migrating scp and library global variables to be declared as extern in the appropriate library include file and remove repetitive declarations in referencing modules.

This commit is contained in:
Mark Pizzolato
2013-01-10 13:29:15 -08:00
parent bc816ae871
commit dac73b9381
139 changed files with 37 additions and 373 deletions

View File

@@ -44,9 +44,9 @@ extern REG cpu_reg[];
extern unsigned char M[];
extern int32 saved_PC, IAR[];
extern unsigned char ebcdic_to_ascii[];
char *parse_addr(char *cptr, char *gbuf, int32 *addr, int32 *addrtype);
char *parse_addr(char *cptr, char *gbuf, t_addr *addr, int32 *addrtype);
int32 printf_sym (FILE *of, char *strg, int32 addr, uint32 *val,
int32 printf_sym (FILE *of, char *strg, t_addr addr, uint32 *val,
UNIT *uptr, int32 sw);
/* SCP data structures
@@ -267,7 +267,7 @@ int32 fprint_sym (FILE *of, t_addr addr, uint32 *val,
return (r);
}
int32 printf_sym (FILE *of, char *strg, int32 addr, uint32 *val,
int32 printf_sym (FILE *of, char *strg, t_addr addr, uint32 *val,
UNIT *uptr, int32 sw)
{
int32 c1, c2, group, len1, len2, inst, aaddr, baddr;
@@ -923,7 +923,7 @@ switch (opcode[j].form) { /* Get operands based on
return (-(oplen-1));
}
char *parse_addr(char *cptr, char *gbuf, int32 *addr, int32 *addrtype)
char *parse_addr(char *cptr, char *gbuf, t_addr *addr, int32 *addrtype)
{
int32 nybble = 0;
char temp[32];