Changeset 1568 for Deliverables/D2.2/8051/src/ASM
- Timestamp:
- Nov 25, 2011, 7:43:39 PM (9 years ago)
- Location:
- Deliverables/D2.2/8051/src/ASM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Deliverables/D2.2/8051/src/ASM/ASMInterpret.ml
r1542 r1568 1007 1007 memory, we must increment by 5, as we added two new instructions. *) 1008 1008 let to_ljmp = `REL (vect_of_int 2 `Eight) in 1009 let offset = 5 in1009 (* let offset = 5 in *) 1010 1010 let jmp_address, translated_jump = 1011 1011 match i with … … 1452 1452 ;; 1453 1453 1454 let unopt = function Some x -> x | None -> invalid_arg "None" 1455 1454 1456 let serial_port_input status in_cont = 1455 1457 (* Serial port input *) … … 1495 1497 serial_v_in = Some (`Eight b) } 1496 1498 else 1497 (* Warning about incomplete case analysis here, but safe as we've already tested for 1498 None. *) 1499 let Some e = status.serial_epsilon_in in 1500 let Some v = status.serial_v_in in 1499 (* safe as we've already tested for None. *) 1500 let e = unopt status.serial_epsilon_in in 1501 let v = unopt status.serial_v_in in 1501 1502 if status.clock >= e then 1502 1503 match v with … … 1534 1535 serial_v_in = Some (`Nine (b, b')) } 1535 1536 else 1536 (* Warning about incomplete case analysis here, but safe as we've already tested for 1537 None. *) 1538 let Some e = status.serial_epsilon_in in 1539 let Some v = status.serial_v_in in 1537 (* safe as we've already tested for None. *) 1538 let e = unopt status.serial_epsilon_in in 1539 let v = unopt status.serial_v_in in 1540 1540 if status.clock >= e then 1541 1541 match v with -
Deliverables/D2.2/8051/src/ASM/I8051.ml
r1488 r1568 11 11 | Cmpl 12 12 | Inc 13 (* | Dec *) 14 | Rl 13 15 14 16 type op2 = … … 27 29 | Cmpl -> "cmpl" 28 30 | Inc -> "inc" 31 | Rl -> "rotl" 29 32 30 33 let print_op2 = function … … 57 60 | Cmpl -> Val.cmpl 58 61 | Inc -> Val.succ 62 | Rl -> Val.rotl 59 63 60 64 let op2 carry op2 v1 v2 = match op2 with -
Deliverables/D2.2/8051/src/ASM/I8051.mli
r1488 r1568 9 9 | Cmpl 10 10 | Inc 11 (* | Dec *) 12 | Rl 11 13 12 14 type op2 =
Note: See TracChangeset
for help on using the changeset viewer.