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 "freescale/opcode.ma".
25 (* ***************** *)
26 (* TABELLA DELL'RS08 *)
27 (* ***************** *)
29 (* RS08: opcode non implementati come da manuale *)
30 ndefinition RS08_not_impl_byte ≝
31 [〈x3,x2〉;〈x3,x3〉;〈x3,xD〉
32 ;〈x4,x0〉;〈x4,x7〉;〈x4,xD〉
33 ;〈xA,x3〉;〈xA,x5〉;〈xA,x7〉
37 (* test bytecode non implementati *)
38 nlemma ok_byte_table_RS08 : forall_b8 (λb.
39 (test_not_impl_byte b RS08_not_impl_byte ⊙ eq_w16 (get_byte_count RS08 b 〈〈x0,x0〉:〈x0,x0〉〉 opcode_table_RS08) 〈〈x0,x0〉:〈x0,x1〉〉) ⊗
40 (⊖ (test_not_impl_byte b RS08_not_impl_byte) ⊙ eq_w16 (get_byte_count RS08 b 〈〈x0,x0〉:〈x0,x0〉〉 opcode_table_RS08) 〈〈x0,x0〉:〈x0,x0〉〉))
45 (* tutti op implementati *)
46 nlemma ok_pseudo_table_RS08 :
48 le_w16 〈〈x0,x0〉:〈x0,x1〉〉 (get_pseudo_count RS08 o 〈〈x0,x0〉:〈x0,x0〉〉 opcode_table_RS08)) = true.
52 (* tutte im implementate *)
53 nlemma ok_mode_table_RS08 :
55 le_w16 〈〈x0,x0〉:〈x0,x1〉〉 (get_mode_count RS08 i 〈〈x0,x0〉:〈x0,x0〉〉 opcode_table_RS08)) = true.
59 (* nessuna ripetizione di combinazione op + imm *)
60 nlemma ok_OpIm_table_RS08 :
63 le_w16 (get_OpIm_count RS08 o i 〈〈x0,x0〉:〈x0,x0〉〉 opcode_table_RS08) 〈〈x0,x0〉:〈x0,x1〉〉)) = true.