source: Deliverables/D4.1/Physical.mli @ 446

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

Partial implementation of Nicolas' requested feature (extraction of code_memory) to Intel HEX format.

File size: 665 bytes
Line 
1open BitVectors;;
2
3exception Byte7_conversion
4
5module type Map =
6 sig
7  type key
8  type map
9   val empty : map
10   val find : key -> map -> byte
11   val add : key -> byte -> map -> map
12   val fold : (key -> byte -> 'b -> 'b) -> map -> 'b -> 'b
13 end
14;;
15
16module Byte7Map : Map with type key = byte7
17module WordMap : Map with type key = word
18
19val int_of_bit: bit -> int
20
21val subb8_with_c:
22 byte -> byte -> bit -> byte * bit * bit * bit (* -, c, ac, ov *)
23val add8_with_c:
24 byte -> byte -> bit -> byte * bit * bit * bit
25val add16_with_c:
26 word -> word -> bit -> word * bit * bit * bit
27val dec: byte -> byte (* with roll-over *)
28val inc: byte -> byte (* with roll-over *)
Note: See TracBrowser for help on using the repository browser.