HP2100: Latest changes from Dave Bryan
This commit is contained in:
parent
751e1c0a7d
commit
5bd6ea9496
2 changed files with 19 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
||||||
/* hp2100_defs.h: HP 2100 simulator definitions
|
/* hp2100_defs.h: HP 2100 simulator definitions
|
||||||
|
|
||||||
Copyright (c) 1993-2014, Robert M. Supnik
|
Copyright (c) 1993-2015, Robert M. Supnik
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
@ -23,6 +23,7 @@
|
||||||
be used in advertising or otherwise to promote the sale, use or other dealings
|
be used in advertising or otherwise to promote the sale, use or other dealings
|
||||||
in this Software without prior written authorization from Robert M Supnik.
|
in this Software without prior written authorization from Robert M Supnik.
|
||||||
|
|
||||||
|
19-Jun-15 JDB Conditionally use Global_PC for PC for version 4.0 and on
|
||||||
30-Dec-14 JDB Added S-register parameters to ibl_copy, more IBL constants
|
30-Dec-14 JDB Added S-register parameters to ibl_copy, more IBL constants
|
||||||
28-Dec-14 JDB Changed suppression from #pragma GCC to #pragma clang
|
28-Dec-14 JDB Changed suppression from #pragma GCC to #pragma clang
|
||||||
05-Feb-13 JDB Added declaration for hp_fprint_stopped
|
05-Feb-13 JDB Added declaration for hp_fprint_stopped
|
||||||
|
@ -77,11 +78,14 @@
|
||||||
#ifndef HP2100_DEFS_H_
|
#ifndef HP2100_DEFS_H_
|
||||||
#define HP2100_DEFS_H_ 0
|
#define HP2100_DEFS_H_ 0
|
||||||
|
|
||||||
#include "sim_defs.h" /* simulator defns */
|
|
||||||
|
|
||||||
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
|
#include "sim_defs.h"
|
||||||
|
#include "sim_rev.h"
|
||||||
|
|
||||||
#define PC PC_Global
|
|
||||||
|
#if (SIM_MAJOR >= 4)
|
||||||
|
#define PC PC_Global /* Rename to avoid namespace conflicts */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* The following pragmas quell clang warnings that are on by default but should
|
/* The following pragmas quell clang warnings that are on by default but should
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
used in advertising or otherwise to promote the sale, use or other dealings
|
used in advertising or otherwise to promote the sale, use or other dealings
|
||||||
in this Software without prior written authorization from Robert M Supnik.
|
in this Software without prior written authorization from Robert M Supnik.
|
||||||
|
|
||||||
|
19-Jun-15 JDB Conditionally use Fprintf function for version 4.x and on
|
||||||
18-Jun-15 JDB Added cast to int for isspace parameter
|
18-Jun-15 JDB Added cast to int for isspace parameter
|
||||||
24-Dec-14 JDB Added casts to t_addr and t_value for 64-bit compatibility
|
24-Dec-14 JDB Added casts to t_addr and t_value for 64-bit compatibility
|
||||||
Made local routines static
|
Made local routines static
|
||||||
|
@ -62,9 +63,18 @@
|
||||||
27-Oct-98 RMS V2.4 load interface
|
27-Oct-98 RMS V2.4 load interface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
#include "hp2100_defs.h"
|
#include "hp2100_defs.h"
|
||||||
#include "hp2100_cpu.h"
|
#include "hp2100_cpu.h"
|
||||||
#include <ctype.h>
|
#include "sim_rev.h"
|
||||||
|
|
||||||
|
|
||||||
|
#if (SIM_MAJOR >= 4)
|
||||||
|
#define fprintf Fprintf
|
||||||
|
#define fputs(_s,_f) Fprintf (_f, "%s", _s)
|
||||||
|
#define fputc(_c,_f) Fprintf (_f, "%c", _c)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
extern DEVICE mp_dev;
|
extern DEVICE mp_dev;
|
||||||
|
@ -431,13 +441,6 @@ static const int32 vtab[] = {
|
||||||
|
|
||||||
#define FMTASC(x) ((x) < 040)? "<%03o>": "%c", (x)
|
#define FMTASC(x) ((x) < 040)? "<%03o>": "%c", (x)
|
||||||
|
|
||||||
#if (SIM_MAJOR >= 4)
|
|
||||||
/* Use scp.c provided fprintf function */
|
|
||||||
#define fprintf Fprintf
|
|
||||||
#define fputs(_s,f) Fprintf(f,"%s",_s)
|
|
||||||
#define fputc(_c,f) Fprintf(f,"%c",_c)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
t_stat fprint_sym (FILE *of, t_addr addr, t_value *val,
|
t_stat fprint_sym (FILE *of, t_addr addr, t_value *val,
|
||||||
UNIT *uptr, int32 sw)
|
UNIT *uptr, int32 sw)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue