]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/ng_assembly2/emulator/read_write/fetch.ma
3b4ed20f64d9dfdbd07567c55bef0fc944e658df
[helm.git] / matita / matita / contribs / ng_assembly2 / emulator / read_write / fetch.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/read_write/Freescale_fetch.ma".
24 include "emulator/read_write/IP2022_fetch.ma".
25 include "emulator/status/status_getter.ma".
26
27 ndefinition fetch ≝
28 λm,t.λs:any_status m t.
29  match m with
30   [ HC05 ⇒ fetch_byte
31   | HC08 ⇒ Freescale_fetch_byte_or_word
32   | HCS08 ⇒ Freescale_fetch_byte_or_word
33   | RS08 ⇒ fetch_byte
34   | IP2022 ⇒ IP2022_fetch_byte_or_word
35   ] m t s (get_pc_reg … s).