Changeset 329 for Deliverables/D4.1/Matita/Status.ma
- Timestamp:
- Nov 29, 2010, 1:42:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Deliverables/D4.1/Matita/Status.ma
r317 r329 98 98 99 99 p1_latch: Byte; 100 p3_latch: Byte 100 p3_latch: Byte; 101 102 clock: Time 101 103 }. 102 104 … … 108 110 ∀i: SFR8052. 109 111 sfr_8052_index i < five. 112 113 ndefinition set_clock ≝ 114 λs: Status. 115 λt: Time. 116 let old_code_memory ≝ code_memory s in 117 let old_low_internal_ram ≝ low_internal_ram s in 118 let old_high_internal_ram ≝ high_internal_ram s in 119 let old_external_ram ≝ external_ram s in 120 let old_program_counter ≝ program_counter s in 121 let old_special_function_registers_8051 ≝ special_function_registers_8051 s in 122 let old_special_function_registers_8052 ≝ special_function_registers_8052 s in 123 let old_p1_latch ≝ p1_latch s in 124 let old_p3_latch ≝ p3_latch s in 125 mk_Status old_code_memory 126 old_low_internal_ram 127 old_high_internal_ram 128 old_external_ram 129 old_program_counter 130 old_special_function_registers_8051 131 old_special_function_registers_8052 132 old_p1_latch 133 old_p3_latch 134 t. 110 135 111 136 ndefinition set_p1_latch ≝ … … 120 145 let old_special_function_registers_8052 ≝ special_function_registers_8052 s in 121 146 let old_p3_latch ≝ p3_latch s in 147 let old_clock ≝ clock s in 122 148 mk_Status old_code_memory 123 149 old_low_internal_ram … … 128 154 old_special_function_registers_8052 129 155 b 130 old_p3_latch. 156 old_p3_latch 157 old_clock. 131 158 132 159 ndefinition set_p3_latch ≝ … … 141 168 let old_special_function_registers_8052 ≝ special_function_registers_8052 s in 142 169 let old_p1_latch ≝ p1_latch s in 170 let old_clock ≝ clock s in 143 171 mk_Status old_code_memory 144 172 old_low_internal_ram … … 149 177 old_special_function_registers_8052 150 178 old_p1_latch 151 b. 179 b 180 old_clock. 152 181 153 182 ndefinition get_8051_sfr ≝ … … 185 214 let old_p1_latch ≝ p1_latch s in 186 215 let old_p3_latch ≝ p3_latch s in 216 let old_clock ≝ clock s in 187 217 mk_Status old_code_memory 188 218 old_low_internal_ram … … 193 223 old_special_function_registers_8052 194 224 old_p1_latch 195 old_p3_latch. 225 old_p3_latch 226 old_clock. 196 227 napply (sfr8051_index_nineteen i). 197 228 nqed. … … 213 244 let old_p1_latch ≝ p1_latch s in 214 245 let old_p3_latch ≝ p3_latch s in 246 let old_clock ≝ clock s in 215 247 mk_Status old_code_memory 216 248 old_low_internal_ram … … 221 253 new_special_function_registers_8052 222 254 old_p1_latch 223 old_p3_latch. 255 old_p3_latch 256 old_clock. 224 257 napply (sfr8052_index_five i). 225 258 nqed. … … 236 269 let old_p1_latch ≝ p1_latch s in 237 270 let old_p3_latch ≝ p3_latch s in 271 let old_clock ≝ clock s in 238 272 mk_Status old_code_memory 239 273 old_low_internal_ram … … 244 278 old_special_function_registers_8052 245 279 old_p1_latch 246 old_p3_latch. 280 old_p3_latch 281 old_clock. 247 282 248 283 ndefinition set_code_memory ≝ … … 257 292 let old_p1_latch ≝ p1_latch s in 258 293 let old_p3_latch ≝ p3_latch s in 294 let old_clock ≝ clock s in 259 295 mk_Status r 260 296 old_low_internal_ram … … 265 301 old_special_function_registers_8052 266 302 old_p1_latch 267 old_p3_latch. 303 old_p3_latch 304 old_clock. 268 305 269 306 ndefinition set_low_internal_ram ≝ … … 278 315 let old_p1_latch ≝ p1_latch s in 279 316 let old_p3_latch ≝ p3_latch s in 317 let old_clock ≝ clock s in 280 318 mk_Status old_code_memory 281 319 r … … 286 324 old_special_function_registers_8052 287 325 old_p1_latch 288 old_p3_latch. 326 old_p3_latch 327 old_clock. 289 328 290 329 ndefinition set_high_internal_ram ≝ … … 300 339 let old_p1_latch ≝ p1_latch s in 301 340 let old_p3_latch ≝ p3_latch s in 341 let old_clock ≝ clock s in 302 342 mk_Status old_code_memory 303 343 old_low_internal_ram … … 308 348 old_special_function_registers_8052 309 349 old_p1_latch 310 old_p3_latch. 350 old_p3_latch 351 old_clock. 311 352 312 353 ndefinition set_external_ram ≝ … … 321 362 let old_p1_latch ≝ p1_latch s in 322 363 let old_p3_latch ≝ p3_latch s in 364 let old_clock ≝ clock s in 323 365 mk_Status old_code_memory 324 366 old_low_internal_ram … … 329 371 old_special_function_registers_8052 330 372 old_p1_latch 331 old_p3_latch. 373 old_p3_latch 374 old_clock. 332 375 333 376 naxiom less_than_or_equal_monotone: … … 467 510 (replicate Byte five (zero eight)) (* 8052 SFR. *) 468 511 (zero eight) (* P1 latch. *) 469 (zero eight) in (* P3 latch. *) 470 set_program_counter status (bitvector_of_nat sixteen seven). 512 (zero eight) (* P3 latch. *) 513 Z (* Clock. *) 514 in 515 set_program_counter status (bitvector_of_nat sixteen seven). 471 516 472 517 naxiom not_implemented: False. … … 650 695 set_low_internal_ram s new_low_internal_ram. 651 696 697 alias id "get_index" = "cic:/matita/ng/BitVector/get_index.def(3)". 652 698 ndefinition read_at_stack_pointer ≝ 653 699 λs: Status.
Note: See TracChangeset
for help on using the changeset viewer.