]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/ng_assembly/emulator/multivm/multivm_base.ma
mod change (-x)
[helm.git] / helm / software / matita / contribs / ng_assembly / emulator / multivm / multivm_base.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 (* ********************************************************************** *)
16 (*                          Progetto FreeScale                            *)
17 (*                                                                        *)
18 (*   Sviluppato da: Ing. Cosimo Oliboni, oliboni@cs.unibo.it              *)
19 (*   Sviluppo: 2008-2010                                                  *)
20 (*                                                                        *)
21 (* ********************************************************************** *)
22
23 include "common/theory.ma".
24 include "emulator/status/status_setter.ma".
25
26 ndefinition set_zflb ≝
27 λm,t.λs:any_status m t.λb.set_z_flag … s (eq_b8 b 〈x0,x0〉).
28 ndefinition set_zflw ≝
29 λm,t.λs:any_status m t.λw.set_z_flag … s (eq_w16 w 〈〈x0,x0〉:〈x0,x0〉〉).
30
31 ndefinition set_nflb ≝
32 λm,t.λs:any_status m t.λb.setweak_n_flag … s (getMSB_b8 b).
33 ndefinition set_nflw ≝
34 λm,t.λs:any_status m t.λw.setweak_n_flag … s (getMSB_w16 w).
35
36 (* enumerazione delle possibili modalita' di sospensione *)
37 ninductive susp_type : Type ≝
38   BGND_MODE: susp_type
39 | STOP_MODE: susp_type
40 | WAIT_MODE: susp_type.