Compare commits

...

2 commits

Author SHA1 Message Date
Gwenhael Le Moine
83a05247ac
make a header for monitor (debugger); rename t48.c 2024-09-11 20:53:03 +02:00
Gwenhael Le Moine
e1aa985d95
include X11/Xlib.h where meaningful 2024-09-11 20:38:52 +02:00
6 changed files with 45 additions and 12 deletions

View file

@ -69,6 +69,8 @@
.- */
#include <X11/Xlib.h>
/*---------------------------------------------------------------------------
Data type definitions - require config.h, machdep.h, cpu.h
---------------------------------------------------------------------------*/

View file

@ -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 <sys/time.h>
#include <X11/Xlib.h>
#include "config.h"
#include "machdep.h"
#include "cpu.h"

View file

@ -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 "args.h"
#include "debug.h"
#include "monitor.h"
/* Chf condition codes (main program only) */
@ -277,11 +278,10 @@ int main( int argc, char* argv[] )
ChfSignal();
}
if ( args.monitor ) {
if ( args.monitor )
/* Invoke Monitor */
void Monitor( void );
Monitor();
} else
else
/* Call Emulator directly */
Emulator();

View file

@ -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 "args.h"
#include "debug.h"
#include "monitor.h"
#define CHF_MODULE_ID X11_CHF_MODULE_ID
#include <Chf.h>
@ -579,15 +580,12 @@ int main( int argc, char* argv[] )
CpuReset();
}
if ( opt.monitor ) {
if ( opt.monitor )
/* Call Monitor */
Monitor();
}
else {
else
/* Call Emulator directly */
Emulator();
}
return EXIT_SUCCESS;
}

View file

@ -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 <errno.h>
#include <X11/Xlib.h>
#include "config.h"
#include "machdep.h"
#include "cpu.h"

37
src/monitor.h Normal file
View 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*/