less printf

This commit is contained in:
Gwenhael Le Moine 2023-10-03 14:53:33 +02:00
parent 9b953e44b6
commit e5e6c74749
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 11 additions and 17 deletions

View file

@ -11,13 +11,14 @@ Cpu cpu;
void cpu_interrupt( void )
{
printf( "cpu_interrupt\n" );
if ( cpu.inte ) {
cpu.inte = false;
cpu.rstk_ptr = ( cpu.rstk_ptr - 1 ) & 7;
cpu.rstk[ cpu.rstk_ptr ] = cpu.pc;
cpu.pc = 0x0000F;
}
/* printf( "cpu_interrupt\n" ); */
if ( !cpu.inte )
return;
cpu.inte = false;
cpu.rstk_ptr = ( cpu.rstk_ptr - 1 ) & 7;
cpu.rstk[ cpu.rstk_ptr ] = cpu.pc;
cpu.pc = 0x0000F;
}
static void decode( byte* ptr )

View file

@ -98,7 +98,7 @@ static void stop_timer_proc( void ( *proc )( void ) )
void emulator_set_state( int state )
{
printf( "emulator_set_state\n" );
/* printf( "emulator_set_state\n" ); */
#ifdef true_TIMER2
if ( state != EMULATOR_STOP ) {
start_timer_proc( timer2_update );

View file

@ -286,7 +286,7 @@ bool refreshSDL()
break;
case SDL_KEYDOWN:
printf( "%d %d\n", event.key.keysym.sym, event.key.keysym.scancode );
/* printf( "%d %d\n", event.key.keysym.sym, event.key.keysym.scancode ); */
pcalc_kb_down( event.key.keysym.scancode );
@ -593,7 +593,6 @@ void mainloop()
// printf("mainloop() currentTime = %d\n", currentTime);
#if 1
// true_speed_proc
if ( currentTime > lastTime_timer2 + delay_timer2 ) {
// printf("Report(2) %dmsec: %d\n", delay_timer2, currentTime -
@ -631,7 +630,6 @@ void mainloop()
lastTime_timer5 = currentTime;
display_show();
}
#endif
if ( refreshSDL() == false ) {
return;
@ -649,14 +647,9 @@ int main( int argc, char* argv[] )
// start_timers();
printf( "NO emscripten_set_main_loop\n" );
while ( please_exit == false )
mainloop();
/*
printf("NO emscripten_set_main_loop\n");
while(please_exit == false) mainloop();
*/
gui_exit();
emulator_exit();
program_exit();

View file

@ -268,7 +268,7 @@ void pcalc_up( int mx, int my, int mb ) { button_mouse_up( calc_buttons, mx, my,
void pcalc_kb_down( SDL_Keycode sdl_event )
{
printf( "%d\n", SDLK_0 );
/* printf( "%d\n", SDLK_0 ); */
KBMapping* mapping = kb_sdl_mapping;
while ( mapping->SDL_event_id ) {
if ( sdl_event == mapping->SDL_event_id ) {