move declarations out of emulator.h

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2024-04-11 09:55:24 +02:00
parent 645abec1d2
commit c31b6c083d
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 20 additions and 13 deletions

View file

@ -296,7 +296,6 @@ t1_t2_ticks get_t1_t2( void )
int i;
gettimeofday( &tv, &tz );
tv.tv_sec -= systime_offset;
if ( timers[ T1_TIMER ].run ) {

View file

@ -296,25 +296,13 @@ typedef struct saturn_t {
extern bool sigalarm_triggered;
extern int set_t1;
extern long sched_adjtime;
extern long schedule_event;
extern char* wire_name;
extern char* ir_name;
extern device_t device;
extern display_t display;
extern saturn_t saturn;
extern bool device_check;
extern bool port1_is_ram;
extern long port1_mask;
extern bool port2_is_ram;
extern long port2_mask;
extern hpkey_t keyboard[ NB_KEYS ];
extern int annunciators_bits[ NB_ANNUNCIATORS ];

View file

@ -3,6 +3,13 @@
#include "emulator.h"
extern device_t device;
extern int set_t1;
extern long sched_adjtime;
extern long schedule_event;
/**************/
/* emu_init.c */
/**************/

View file

@ -8,6 +8,19 @@
#define T1_TIMER 0
/* #define T2_TIMER 1 /\* unused? *\/ */
extern device_t device;
extern int set_t1;
extern long sched_adjtime;
extern long schedule_event;
extern bool device_check;
extern bool port1_is_ram;
extern long port1_mask;
extern bool port2_is_ram;
extern long port2_mask;
extern bool adj_time_pending;
extern int start_fields[ 19 ];