mirror of
https://github.com/simh/simh.git
synced 2026-02-24 16:08:40 +00:00
ALTAIR, Interdata, LGP, NOVA: Addition of sim_printf in various places from Bob Supnik
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
cpu 8080 CPU
|
||||
|
||||
02-Feb-15 RSB Fixed initialization of "uninstalled" memory
|
||||
02-Feb-15 RSB Fixed initialization of "uninstalled" memory
|
||||
19-Mar-12 RMS Fixed data type for breakpoint variables
|
||||
08-Oct-02 RMS Tied off spurious compiler warnings
|
||||
|
||||
|
||||
@@ -24,19 +24,19 @@
|
||||
in this Software without prior written authorization from Charles E. Owen.
|
||||
*/
|
||||
|
||||
#include "sim_defs.h" /* simulator defns */
|
||||
#include "sim_defs.h" /* simulator defns */
|
||||
|
||||
/* Memory */
|
||||
|
||||
#define MAXMEMSIZE 65536 /* max memory size */
|
||||
#define MEMSIZE (cpu_unit.capac) /* actual memory size */
|
||||
#define ADDRMASK (MAXMEMSIZE - 1) /* address mask */
|
||||
#define MAXMEMSIZE 65536 /* max memory size */
|
||||
#define MEMSIZE (cpu_unit.capac) /* actual memory size */
|
||||
#define ADDRMASK (MAXMEMSIZE - 1) /* address mask */
|
||||
#define MEM_ADDR_OK(x) (((uint32) (x)) < MEMSIZE)
|
||||
|
||||
/* Simulator stop codes */
|
||||
|
||||
#define STOP_RSRV 1 /* must be 1 */
|
||||
#define STOP_HALT 2 /* HALT */
|
||||
#define STOP_IBKPT 3 /* breakpoint */
|
||||
#define STOP_OPCODE 4
|
||||
#define STOP_RSRV 1 /* must be 1 */
|
||||
#define STOP_HALT 2 /* HALT */
|
||||
#define STOP_IBKPT 3 /* breakpoint */
|
||||
#define STOP_OPCODE 4
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ while ((i = getc (fileref)) != EOF) {
|
||||
addr++;
|
||||
cnt++;
|
||||
} /* end while */
|
||||
printf ("%d Bytes loaded.\n", cnt);
|
||||
sim_printf ("%d Bytes loaded.\n", cnt);
|
||||
return (SCPE_OK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user