]> matita.cs.unibo.it Git - helm.git/blobdiff - matitaB/matita/contribs/ng_assembly2/emulator/read_write/fetch.ma
fork for Matita version B
[helm.git] / matitaB / matita / contribs / ng_assembly2 / emulator / read_write / fetch.ma
diff --git a/matitaB/matita/contribs/ng_assembly2/emulator/read_write/fetch.ma b/matitaB/matita/contribs/ng_assembly2/emulator/read_write/fetch.ma
new file mode 100755 (executable)
index 0000000..3b4ed20
--- /dev/null
@@ -0,0 +1,35 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||M||                                                             *)
+(*      ||A||       A project by Andrea Asperti                           *)
+(*      ||T||                                                             *)
+(*      ||I||       Developers:                                           *)
+(*      ||T||         The HELM team.                                      *)
+(*      ||A||         http://helm.cs.unibo.it                             *)
+(*      \   /                                                             *)
+(*       \ /        This file is distributed under the terms of the       *)
+(*        v         GNU General Public License Version 2                  *)
+(*                                                                        *)
+(**************************************************************************)
+
+(* ********************************************************************** *)
+(*                          Progetto FreeScale                            *)
+(*                                                                        *)
+(*   Sviluppato da: Ing. Cosimo Oliboni, oliboni@cs.unibo.it              *)
+(*   Sviluppo: 2008-2010                                                  *)
+(*                                                                        *)
+(* ********************************************************************** *)
+
+include "emulator/read_write/Freescale_fetch.ma".
+include "emulator/read_write/IP2022_fetch.ma".
+include "emulator/status/status_getter.ma".
+
+ndefinition fetch ≝
+λm,t.λs:any_status m t.
+ match m with
+  [ HC05 ⇒ fetch_byte
+  | HC08 ⇒ Freescale_fetch_byte_or_word
+  | HCS08 ⇒ Freescale_fetch_byte_or_word
+  | RS08 ⇒ fetch_byte
+  | IP2022 ⇒ IP2022_fetch_byte_or_word
+  ] m t s (get_pc_reg … s).