Compare commits
2 commits
07230bdd5d
...
83a05247ac
Author | SHA1 | Date | |
---|---|---|---|
|
83a05247ac | ||
|
e1aa985d95 |
6 changed files with 45 additions and 12 deletions
|
@ -69,6 +69,8 @@
|
||||||
|
|
||||||
.- */
|
.- */
|
||||||
|
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------
|
/*---------------------------------------------------------------------------
|
||||||
Data type definitions - require config.h, machdep.h, cpu.h
|
Data type definitions - require config.h, machdep.h, cpu.h
|
||||||
---------------------------------------------------------------------------*/
|
---------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -118,8 +118,6 @@ static char rcs_id[] = "$Id: emulator.c,v 4.1 2000/12/11 09:54:19 cibrario Rel $
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "machdep.h"
|
#include "machdep.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
|
|
@ -113,6 +113,7 @@ static char rcs_id[] = "$Id: saturn.c,v 4.1 2000/12/11 09:54:19 cibrario Rel $";
|
||||||
#include "serial.h"
|
#include "serial.h"
|
||||||
#include "args.h"
|
#include "args.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
#include "monitor.h"
|
||||||
|
|
||||||
/* Chf condition codes (main program only) */
|
/* Chf condition codes (main program only) */
|
||||||
|
|
||||||
|
@ -277,11 +278,10 @@ int main( int argc, char* argv[] )
|
||||||
ChfSignal();
|
ChfSignal();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( args.monitor ) {
|
if ( args.monitor )
|
||||||
/* Invoke Monitor */
|
/* Invoke Monitor */
|
||||||
void Monitor( void );
|
|
||||||
Monitor();
|
Monitor();
|
||||||
} else
|
else
|
||||||
/* Call Emulator directly */
|
/* Call Emulator directly */
|
||||||
Emulator();
|
Emulator();
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,7 @@ static char rcs_id[] = "$Id: t48.c,v 4.1 2000/12/11 09:54:19 cibrario Rel $";
|
||||||
#include "x11.h"
|
#include "x11.h"
|
||||||
#include "args.h"
|
#include "args.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
#include "monitor.h"
|
||||||
|
|
||||||
#define CHF_MODULE_ID X11_CHF_MODULE_ID
|
#define CHF_MODULE_ID X11_CHF_MODULE_ID
|
||||||
#include <Chf.h>
|
#include <Chf.h>
|
||||||
|
@ -579,15 +580,12 @@ int main( int argc, char* argv[] )
|
||||||
CpuReset();
|
CpuReset();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( opt.monitor ) {
|
if ( opt.monitor )
|
||||||
/* Call Monitor */
|
/* Call Monitor */
|
||||||
Monitor();
|
Monitor();
|
||||||
}
|
else
|
||||||
|
|
||||||
else {
|
|
||||||
/* Call Emulator directly */
|
/* Call Emulator directly */
|
||||||
Emulator();
|
Emulator();
|
||||||
}
|
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
|
@ -76,8 +76,6 @@ static char rcs_id[] = "$Id: monitor.c,v 4.1 2000/12/11 09:54:19 cibrario Rel $"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "machdep.h"
|
#include "machdep.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
|
37
src/monitor.h
Normal file
37
src/monitor.h
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
#ifndef _MONITOR_H
|
||||||
|
#define _MONITOR_H 1
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------------
|
||||||
|
saturn - A poor-man's emulator of some HP calculators
|
||||||
|
Copyright (C) 1998-2000 Ivan Cibrario Bertolotti
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with the documentation of this program; if not, write to
|
||||||
|
the Free Software Foundation, Inc.,
|
||||||
|
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
For more information, please contact the author, preferably by email,
|
||||||
|
at the following address:
|
||||||
|
|
||||||
|
Ivan Cibrario Bertolotti
|
||||||
|
IRITI - National Research Council
|
||||||
|
c/o IEN "Galileo Ferraris"
|
||||||
|
Strada delle Cacce, 91
|
||||||
|
10135 - Torino (ITALY)
|
||||||
|
|
||||||
|
email: cibrario@iriti.cnr.it
|
||||||
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
void Monitor( void );
|
||||||
|
|
||||||
|
#endif /*!_MONITOR_H*/
|
Loading…
Reference in a new issue