Changeset 1708 for Deliverables/D2.2


Ignore:
Timestamp:
Feb 17, 2012, 11:51:59 AM (8 years ago)
Author:
mulligan
Message:

Change to the execution of the MOVC instruction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Deliverables/D2.2/8051/src/ASM/ASMInterpret.ml

    r1568 r1708  
    17971797      | `MOVC (`A, `A_PC) ->
    17981798        let big_acc = mk_word (zero `Eight) status.acc in
    1799         (* DPM: Under specified: does the carry from PC incrementation affect the *)
    1800         (*      addition of the PC with the DPTR? At the moment, no.              *)
    1801         let cry,inc_pc = half_add status.pc (vect_of_int 1 `Sixteen) in
    1802         let status = { status with pc = inc_pc } in
    1803         let cry,addr = half_add inc_pc big_acc in
     1799        let cry,addr = half_add status.pc big_acc in
    18041800        let lookup = Physical.WordMap.find addr status.code_memory in
    18051801        { status with acc = lookup }
Note: See TracChangeset for help on using the changeset viewer.