openbsd-ports/emulators/simh/patches/patch-VAX_vax780_sbi_c
2009-03-06 10:33:23 +00:00

29 lines
783 B
Plaintext

$OpenBSD: patch-VAX_vax780_sbi_c,v 1.4 2009/03/06 10:33:23 form Exp $
--- VAX/vax780_sbi.c.orig Tue Nov 18 10:37:06 2008
+++ VAX/vax780_sbi.c Tue Feb 10 22:38:53 2009
@@ -34,6 +34,10 @@
#include "vax_defs.h"
+#ifndef PATH_VMB_EXE
+#define PATH_VMB_EXE "vmb.exe"
+#endif
+
/* 11/780 specific IPRs */
/* Writeable control store */
@@ -661,10 +665,10 @@ t_stat cpu_boot (int32 unitno, DEVICE *dptr)
{
t_stat r;
-printf ("Loading boot code from vmb.exe\n");
+printf ("Loading boot code from %s\n", PATH_VMB_EXE);
if (sim_log) fprintf (sim_log,
- "Loading boot code from vmb.exe\n");
-r = load_cmd (0, "-O vmb.exe 200");
+ "Loading boot code from %s\n", PATH_VMB_EXE);
+r = load_cmd (0, "-O " PATH_VMB_EXE " 200");
if (r != SCPE_OK)
return r;
SP = PC = 512;