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

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

More added to address1 function. Weird type error?

File size: 813 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 byte_of_bit: bit -> byte
22
23val (++): word -> int -> word
24
25val add8_with_c:
26 byte -> byte -> bit -> byte * bit * bit * bit (* +, c, ac, ov *)
27val subb8_with_c:
28 byte -> byte -> bit -> byte * bit * bit * bit (* -, c, ac, ov *)
29val dec: byte -> byte (* with roll-over *)
30val inc: byte -> byte (* with roll-over *)
Note: See TracBrowser for help on using the repository browser.