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 "common/theory.ma".
24 include "emulator/status/status_setter.ma".
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〉〉).
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).
36 (* enumerazione delle possibili modalita' di sospensione *)
37 ninductive susp_type : Type ≝
39 | STOP_MODE: susp_type
40 | WAIT_MODE: susp_type.