bring back monitor

This commit is contained in:
Gwenhael Le Moine 2024-09-24 14:35:11 +02:00
parent 4dc6b4cf42
commit 576063d929
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -12,6 +12,7 @@
#include "config.h"
#include "cpu.h"
#include "monitor.h"
#define SPEED_HZ_UI 64
@ -183,7 +184,12 @@ int main( int argc, char** argv )
it.it_value.tv_usec = 1000000 / SPEED_HZ_UI;
setitimer( ITIMER_REAL, &it, ( struct itimerval* )0 );
Emulator();
if ( config->monitor )
/* Invoke Monitor */
Monitor();
else
/* Call Emulator directly */
Emulator();
/* never reached */
return EXIT_SUCCESS;