make init_serial() an emulator_inner function
This commit is contained in:
parent
d4a3bae009
commit
6557009df9
4 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 */
|
||||
/*****************/
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -101,7 +101,6 @@ int main( int argc, char** argv )
|
|||
|
||||
/* Emulator */
|
||||
init_emulator();
|
||||
init_serial();
|
||||
init_display();
|
||||
|
||||
/* (G)UI */
|
||||
|
|
Loading…
Add table
Reference in a new issue