source: Deliverables/D4.1/physical.mli @ 42

Last change on this file since 42 was 42, checked in by mulligan, 10 years ago

Address1 function completed for instructions A--M.

File size: 848 bytes
Line 
1exception FOO2
2
3type bit = bool
4type nibble = bit * bit * bit * bit
5type byte = nibble * nibble
6type byte7 = bit * bit * bit * nibble
7type word = byte * byte
8type word11 = bit * bit * bit * byte
9
10module Byte7Map : Map.S with type key = byte7
11module WordMap : Map.S with type key = word
12
13val byte7_of_byte: byte -> byte7
14
15val word_of_int: int -> word
16val byte7_of_int: int -> byte7
17val byte_of_int: int -> byte
18val int_of_bit: bit -> int
19val int_of_byte: byte -> int
20val int_of_nibble: nibble -> int
21val byte7_of_bit: bit -> byte7
22val byte_of_byte7: byte7 -> byte
23
24val (++): word -> int -> word
25
26val add8_with_c:
27 byte -> byte -> bit -> byte * bit * bit * bit (* +, c, ac, ov *)
28val subb8_with_c:
29 byte -> byte -> bit -> byte * bit * bit * bit (* -, c, ac, ov *)
30val dec: byte -> byte (* with roll-over *)
31val inc: byte -> byte (* with roll-over *)
Note: See TracBrowser for help on using the repository browser.