make init_serial() an emulator_inner function

This commit is contained in:
Gwenhael Le Moine 2024-04-10 14:34:45 +02:00
parent d4a3bae009
commit 6557009df9
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 5 additions and 6 deletions

View file

@ -1013,6 +1013,10 @@ int init_emulator( void )
if ( !read_rom( normalized_rom_path ) )
exit( 1 ); /* can't read ROM */
init_serial();
/* init_display(); */
return 0;
}

View file

@ -338,11 +338,6 @@ extern void press_key( int hpkey ); /* used in ui_*.c */
extern void release_key( int hpkey ); /* used in ui_*.c */
extern void release_all_keys( void ); /* used in ui_*.c */
/****************/
/* emu_serial.c */
/****************/
extern int init_serial( void ); /* used in main.c */
/*****************/
/* emu_emulate.c */
/*****************/

View file

@ -77,5 +77,6 @@ extern int is_greater_or_equal_register( unsigned char* r1, unsigned char* r2, i
extern void serial_baud( int baud );
extern void transmit_char( void );
extern void receive_char( void );
extern int init_serial( void );
#endif /* _EMULATOR_INNER_H */

View file

@ -101,7 +101,6 @@ int main( int argc, char** argv )
/* Emulator */
init_emulator();
init_serial();
init_display();
/* (G)UI */