]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/ng_assembly2/emulator/multivm/multivm_base.ma
mod change (-x)
[helm.git] / helm / software / matita / contribs / ng_assembly2 / 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 "emulator/status/status_setter.ma".
24
25 ndefinition set_zflb ≝
26 λm,t.λs:any_status m t.λb:byte8.set_z_flag … s (eqc ? b (zeroc ?)).
27 ndefinition set_zflw ≝
28 λm,t.λs:any_status m t.λw:word16.set_z_flag … s (eqc ? w (zeroc ?)).
29
30 ndefinition set_nflb ≝
31 λm,t.λs:any_status m t.λb:byte8.setweak_n_flag … s (getMSBc ? b).
32 ndefinition set_nflw ≝
33 λm,t.λs:any_status m t.λw:word16.setweak_n_flag … s (getMSBc ? w).
34
35 (* enumerazione delle possibili modalita' di sospensione *)
36 ninductive susp_type : Type ≝
37   BGND_MODE: susp_type
38 | STOP_MODE: susp_type
39 | WAIT_MODE: susp_type.