[ucsim] Update email and file info, fix stm8 flash controller
[sdcc.git] / sdcc / sim / ucsim / src / sims / m6809.src / sm6809.cc
blob00324a341a0bec9191bdf149a39d221074717147
1 /*
2 * Simulator of microcontrollers (sm6809.cc)
4 * Copyright (C) 2020 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 "simm6809cl.h"
36 int
37 main(int argc, char *argv[])
39 class cl_sim *sim;
41 app_start_at= dnow();
42 application= new cl_app();
43 application->set_name("sm6809");
44 application->init(argc, argv);
45 sim= new cl_simm6809(application);
46 if (sim->init())
47 sim->state|= SIM_QUIT;
48 application->set_simulator(sim);
49 //sim->main();
50 application->run();
51 application->done();
52 delete application;
53 return(0);
56 /* End of m6809.src/sm6809.cc */