[ library(asm) | The ECLiPSe Libraries | Reference Manual | Alphabetic Index ]
asm(+PredSpec, +WAMCode, +Module)
Assemble the WAM instructions WAMCode into ECLiPSe in module Module as
- A list of WAM instructions in the right format.
- An atom.
Assembles the WAM instruction WAMCode into the current ECLiPSe session
in an existing module Module as the predicate PredSpec. The WAM code is
in the form of a list, with each element representing one WAM
instruction. The format of the WAMCode is the same as that generated by
disasm/2,3. Thus the predicate can be used to load a predicate
previously dissasembled by disasm/2,3 without having to compile the
source Prolog form of the predicate.
The library asm must be loaded to use diasm/3.
If PredSpec is an existing defined predicate, the older definition will
be replaced. If WAMCode is not in the correct format, an exception will
be generated and the predicate PredSpec would not be redefined.
- (5) type error
- PredSpec or Module is not in correct form.
- (6) out of range
- WAMCode is not in correct form.
- (80) not a module
- Module is not an existing module.
asm / 2, disasm / 2, disasm / 3, pasm / 3