[ucsim] Update email and file info, fix stm8 flash controller
[sdcc.git] / sdcc / sim / ucsim / src / sims / i8048.src / si8048.cc
blob923d9646eed2c626c491eb200e91b16a07e7a3c7
1 /*
2 * Simulator of microcontrollers (si8048.cc)
4 * Copyright (C) 2022 Drotos Daniel
5 *
6 * To contact author send email to dr.dkdb@gmail.com
8 */
10 /* This file is part of microcontroller simulator: ucsim.
12 UCSIM is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
17 UCSIM is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with UCSIM; see the file COPYING. If not, write to the Free
24 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
25 02111-1307, USA. */
26 /*@1@*/
28 // prj
29 #include "globals.h"
30 #include "utils.h"
32 // local
33 #include "simi8048cl.h"
34 #include "glob.h"
36 int
37 main(int argc, char *argv[])
39 class cl_sim *sim;
41 app_start_at= dnow();
42 cpus= cpus_8048;
43 /* Replace 1s to flagP in p table */
44 /*for (int i= 0; i<256; i++)
45 if (ptab[i])
46 ptab[i]= flagP;*/
47 application= new cl_app();
48 application->set_name("si8048");
49 application->init(argc, argv);
50 sim= new cl_simi8048(application);
51 if (sim->init())
52 sim->state|= SIM_QUIT;
53 application->set_simulator(sim);
54 application->run();
55 application->done();
56 delete application;
57 return 0;
60 /* End of i8048.src/si8048.cc */