Add a Processor Layer to an Assembly Instruction Set
Easily Get Premade Assembly Instructions
Usage
add_processor(x)
get_premade(
x = c("jump", "set", "add", "subtract", "multiply", "divide", "modulo")
)
Arguments
- x
A vector of functions. The options are
c("set", "add", "subtract", "multiply", "divide", "modulo")
. A named vector can be supplied where the functions returned will match the values of the supplied vector with the names of the supplied vector.
Value
A list of vectors of length two. The first item is "proc"
and the
second is the original instruction in x.
A list of functions.
Examples
if (FALSE) {
get_premade(c("add", "prod" = "multiply"))
}