freebsd-ports/emulators/sim6811/files/patch-ac

35 lines
1.3 KiB
Text

--- main.c.orig Tue Mar 22 14:16:59 1994
+++ main.c Thu Oct 16 10:06:27 2003
@@ -70,11 +70,8 @@
#include <ctype.h>
#include "sim.h"
-extern int printf();
-extern int fprintf();
extern int fclose();
extern int fscanf();
-extern int sscanf();
extern int fflush();
/* how to handle all other op codes */
@@ -323,19 +320,7 @@
case '?': /* help */
(void) fgets(line, sizeof(line), stdin);
- printf(
- "
-
- (empty line) step once
-s [n] step n times
-b [add [n]] set break at add which will survive n hits
-g [add [n]] set pc to add, step n times
-l [add [n]] list n lines of disassembly starting from pc
-m add n set specified memory location to n
-R Reset memory, regs and reload code
-t [add [n]] set temporary break at add which will survive n hits
-q or EOF exit simulator
-? print this list\n\n");
+ printf("\n\n (empty line) step once\ns [n] step n times\nb [add [n]] set break at add which will survive n hits\ng [add [n]] set pc to add, step n times\nl [add [n]] list n lines of disassembly starting from pc\nm add n set specified memory location to n\nR Reset memory, regs and reload code\nt [add [n]] set temporary break at add which will survive n hits\nq or EOF exit simulator\n? print this list\n\n");
printf("hit return to continue");
fflush(stdout);
fgets(line, sizeof(line), stdin);