Debian Codegraph @

lib/mlrisc-lib/MLRISC/instructions/pseudoOps.sig

raw
1 (* pseudo-ops.sml --- description of assembly pseudo-ops
2 *
3 * COPYRIGHT (c) 1996 AT&T Bell Laboratories.
4 *
5 *)
6
7 signature PSEUDO_OPS = sig
8 type pseudo_op
9
10 val toString : pseudo_op -> string
11
12 val emitValue : {pOp:pseudo_op, loc:int, emit:Word8.word -> unit} -> unit
13 (* emit value of pseudo op give current location counter and output
14 * stream. The value emitted should respect the endianness of the
15 * target machine.
16 *)
17
18 val sizeOf : pseudo_op * int -> int
19 (* Size of the pseudo_op in bytes given the current location counter
20 * The location counter is provided in case some pseudo ops are
21 * dependent on alignment considerations.
22 *)
23
24 val adjustLabels : pseudo_op * int -> bool
25 (* adjust the value of labels in the pseudo_op given the current
26 * location counter.
27 *)
28
29 end
30
31