Ignore:
Timestamp:
Sep 2, 2010, 6:30:29 PM (9 years ago)
Author:
sacerdot
Message:

1) all the opcodes are there in ASM syntax

(but no labels, pseudo-instruction and similar ASM-level stuff)

2) assembly function (from ASM syntax to bytes) partially implemented
3) decode function (from bytes to ASM syntax) partially implemented
4) one-step execute function partially implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Deliverables/D4.1/ASM.mli

    r27 r28  
    55type ('a,'b,'c,'d,'e,'f) union6 = [ `U1 of 'a | `U2 of 'b | `U3 of 'c | `U4 of 'd | `U5 of 'e | `U6 of 'f ]
    66
    7 type direct = [ `Direct of byte ]
    8 type indirect = [ `IR0 | `IR1 ]
    9 type reg = [ `R0 | `R1 | `R2 | `R3 | `R4 | `R5 | `R6 | `R7 ]
     7type direct = [ `DIRECT of byte ]
     8type indirect = [ `INDIRECT of bool ]
     9type reg = [ `REG of bit * bit * bit ]
    1010type acc = [ `A ]
    1111type b = [ `B ]
     
    3636 (* logical operations *)
    3737 | ANL of
    38     (acc * [ reg | direct | indirect ],
     38    (acc * [ reg | direct | indirect | data ],
    3939     direct * [ acc | data ],
    4040     carry * [ bit | nbit]) union3
Note: See TracChangeset for help on using the changeset viewer.