1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 (* ********************************************************************** *)
16 (* Progetto FreeScale *)
18 (* Sviluppato da: Ing. Cosimo Oliboni, oliboni@cs.unibo.it *)
19 (* Sviluppo: 2008-2010 *)
21 (* ********************************************************************** *)
23 include "emulator/status/status_setter.ma".
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 ?)).
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).
35 (* enumerazione delle possibili modalita' di sospensione *)
36 ninductive susp_type : Type ≝
38 | STOP_MODE: susp_type
39 | WAIT_MODE: susp_type.